Skip to content

Instantly share code, notes, and snippets.

View chuikoaleksandr's full-sized avatar

Chuiko Aleksandr chuikoaleksandr

  • @Mail.Ru
  • Russia
View GitHub Profile
@chuikoaleksandr
chuikoaleksandr / approve(next status) condition.groovy
Last active November 13, 2018 14:31
JIRA process approval. MyGroovy + Custom select. All process in 1 workflow status. https://atlasteam.ru/?p=1746
import com.atlassian.jira.component.ComponentAccessor
import groovy.json.JsonSlurper
cfStep = ComponentAccessor.customFieldManager.getCustomFieldObject(10003)//Text Field (single line)
cfCustomSelect = ComponentAccessor.customFieldManager.getCustomFieldObject(10004)//Custom Select List
def customSelectValue = issue.getCustomFieldValue(cfCustomSelect)
if(!customSelectValue){
return false
}