Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

groovy post function error - Insight condition

Sal September 26, 2022
Hello Community,
I am using the 'Set the value of an object attribute with a predefined value' Insight Post Function to populate a "User Picker (multiple users)" field which is alone working fine.
Now, I would like to put a condition where it should only work when "Customer Request Type" is selected as "A" or "B".
Here is what is I am using in condition but its not working.
import com.atlassian.jira.component.ComponentAccessor
def cf = ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10001 as Long)
issue.getCustomFieldValue(cf) == "A" || issue.getCustomFieldValue(cf) == "B"
Any help on this?
Thanks in advance!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events