User Tools

Site Tools


post_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
post_functions [2018/04/20 10:09] – post function on clone issue script rootpost_functions [2026/02/01 12:29] (current) – external edit 127.0.0.1
Line 122: Line 122:
  
 UserMessageUtil.success('So... you think you can dance? :)') UserMessageUtil.success('So... you think you can dance? :)')
 +</code>
 +
 +=== Update Select List (Drop Down) field Status with value Waiting Approval ===
 +
 +<code java>
 +import com.atlassian.jira.component.ComponentAccessor
 +def cfSelect = ComponentAccessor.customFieldManager.getCustomFieldObjectByName("Status")
 +def cfConfig = cfSelect.getRelevantConfig(issue)
 +def value = ComponentAccessor.optionsManager.getOptions(cfConfig)?.find {
 +    it.toString() == 'Waiting Approval'
 +}
 +issue.setCustomFieldValue(cfSelect, value)
 </code> </code>
post_functions.1524233361.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki