This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
post_functions [2018/04/20 10:09] root post function on clone issue script |
post_functions [2018/06/27 13:03] (current) root |
||
---|---|---|---|
Line 122: | Line 122: | ||
UserMessageUtil.success(' | UserMessageUtil.success(' | ||
+ | </ | ||
+ | |||
+ | === Update Select List (Drop Down) field Status with value Waiting Approval === | ||
+ | |||
+ | <code java> | ||
+ | import com.atlassian.jira.component.ComponentAccessor | ||
+ | def cfSelect = ComponentAccessor.customFieldManager.getCustomFieldObjectByName(" | ||
+ | def cfConfig = cfSelect.getRelevantConfig(issue) | ||
+ | def value = ComponentAccessor.optionsManager.getOptions(cfConfig)? | ||
+ | it.toString() == ' | ||
+ | } | ||
+ | issue.setCustomFieldValue(cfSelect, | ||
</ | </ |