We use "Set a Jira custom field with the attribute value from a selected object" post function in a workflow. We need to have a condition based of the values of select list field. Ca you give me an example?
Hi @Anna Protopapa ,
I assume your field has "Select List (single choice)" type. Then you can use something like this - if in custom field with id 12345 option with value "Your Value" is stored, the post function will be executed:
Long customFieldId = 12345
String customFieldValue = "Your Value"
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager()
CustomField customField = customFieldManager.getCustomFieldObject(customFieldId)
Option customFieldOption = issue.getCustomFieldValue(customField) as Option
return customFieldOption?.getValue() == customFieldValue
We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan. &nb...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event