Hey guys, i can't seem to get a simple thing to work in this small formular.. Its not so clear what the priority.getName() field returns. I have entered this enter a text custom field and just returned priority.getName() and it comes back as "Medium" however wheni try a Number custom field i can't seem to break into the if statement:
<!-- @@Formula: priorityField = issue.get("priority"); if (priorityField.getName() == "Medium") return 50; -->
The above code doesn't return any errors. However it doesn't return anything, simply because the if statement isn't being entered into. I have tested my if statement by making (priorityField.getName() == priorityField.getName()) and it works perfectly fine..
Are Priorities are labeled, medium/low/high/Critical.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork? We've compiled a list here, along with...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs