It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

TO define IF AND function in jira behaviour field

How do i define IF AND function in Jira behaviour field

Currently i am using below script and it is not working

 

if (SAPChange.getValue() == "Yes") && (changetype.getValue() == "Emergency" "Normal")

 

1 answer

if you mean it should be one of those two values, use

changetype.getValue() in ["Emergency", "Normal"]

also, dont mess with parentheses:

if (SAPChange.getValue() == "Yes" && changetype.getValue() in ["Emergency", "Normal"]) {
// ...

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Events near you