Created
October 29, 2018 14:44
-
-
Save chuikoaleksandr/a1d0f93771ad33772fb99653374226d6 to your computer and use it in GitHub Desktop.
JIRA process approval. MyGroovy + Custom select. All process in 1 workflow status.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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