Hello,
I'm trying to create a Calculated Text field where I take 2 different custom fields, assign those text values a numeric value, and add them together.
If both custom fields were numbers, I believe this code would work.
<!-- @@Formula: (issue.get("customfield_10114") !=<span> </span>null ? issue.get("customfield_10114") :<span> </span>0) + (issue.get("customfield_10150") !=<span> </span>null ? issue.get("customfield_10150") :<span> </span>0) --> |
As an example:
Let's say I create 2 custom fields that are Select Lists (Single Choice) called Priority and Severity.
Each one contains the following values: High, Medium, Low, Not Applicable.
I want to assign a value of 5 to High, 3 to Medium, 1 to Low, and 0 to Not Applicable, and add those Priority and Severity totals together into a calculated field to return a value.
Can someone point me in the right direction? Thank you!