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" ) != null ? issue.get( "customfield_10114" ) : 0 ) + (issue.get( "customfield_10150" ) != null ? issue.get( "customfield_10150" ) : 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!
hi, im not able to view this page "https://bitbucket.org/fcarmario/jira-workflow-toolbox/wiki/amazing/Set%20a%20Field%20as%20a%20Function%20of%20other%20Fields"
Can someone help please
Good morning @DevOps-Tally. ,
the documentation was completely upgraded and moved some time ago. You can find it here now:
The function you are looking for has been renamed to Update field based on rules.
Best, Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I found another shorter solution than suggested in your shared link above:
you can use this:
toNumber(%{id-customfield1})*toNumber(%{id-customfield2})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,Im very very new to coding and would need help in writing this from scratch.Even if you can help with a sample that i can edit that would be of great help. I have the same requirement and struggling to have a fix.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm responding to myself from my work account... I did find a way to do this using the Jira Workflow Tools plugin... This link outlines how to do it using their post functions and assigning numeric values to the words in the list options, and storing it in Ephemeral numbers, to then add it all up in a numeric custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.