Skip to content

Instantly share code, notes, and snippets.

@chuikoaleksandr
Created October 29, 2018 14:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save chuikoaleksandr/a1d0f93771ad33772fb99653374226d6 to your computer and use it in GitHub Desktop.
JIRA process approval. MyGroovy + Custom select. All process in 1 workflow status.
import com.atlassian.jira.component.ComponentAccessor
cfNeedApproval = ComponentAccessor.customFieldManager.getCustomFieldObject(10001)//User Picker (multiple users)
cfApprovedBy = ComponentAccessor.customFieldManager.getCustomFieldObject(10002)//User Picker (multiple users)
cfStep = ComponentAccessor.customFieldManager.getCustomFieldObject(10003)//Text Field (single line)
issue.setCustomFieldValue(cfNeedApproval, null)
issue.setCustomFieldValue(cfApprovedBy, null)
issue.setCustomFieldValue(cfStep, null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment