Skip to content

Instantly share code, notes, and snippets.

@chuikoaleksandr
Created October 29, 2018 14:37
Show Gist options
  • Save chuikoaleksandr/7f55cdedd4eaefd8713272265a6d8e41 to your computer and use it in GitHub Desktop.
Save chuikoaleksandr/7f55cdedd4eaefd8713272265a6d8e41 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)
return (issue.getCustomFieldValue(cfNeedApproval)?:[]).contains(currentUser)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment