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?
How can the attribute name: both "xyz" and Let us say "ABC" from the Insight object must be in the Approver field of the ticket. ?
If I do it your way with the post function with one another. It first sets the XYZ as approver and than overwrites the approver with the "ABC" that doesn't fit.
So, how can i set the attributes XYZ and ABC attributes from the Insight object in the Approver field ?
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
On October 20, 2021, Atlassian published a security advisory for Jira Service Management. The full advisory is available at this link. We've seen a number of questions already asking for...
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
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events