Last active
November 29, 2018 12:55
-
-
Save chuikoaleksandr/47df6ce883824cacf884746e41ea6882 to your computer and use it in GitHub Desktop.
Calculate field for complex priority https://atlasteam.ru/?p=1815
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 | |
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