Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Number Field - Prioity

Ruben June 23, 2017

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. 

Any ideas? 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events