Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Calculate field for complex priority https://atlasteam.ru/?p=1815
import com.atlassian.jira.component.ComponentAccessor
def getCustomFieldValue(issue, Long fieldId) {
ComponentAccessor.customFieldManager.getCustomFieldObject(fieldId)?.getValue(issue)
}
def customSelects = [10001,10002,10003]//todo set Custom Select List field id
def rezult = 1
customSelects.each{cfId->
rezult *= getCustomFieldValue(issue, cfId)?.data as Integer
}
return rezult
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.