Forums

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

Jira Automation: Multiply two select list fields

Brian Trepto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 14, 2023

Hey all! 

I have two custom fields of the type select list. I have to multiply the value of those two fields into a new 3rd field. I created two variables and saved the select list value there to be able to calculate them. Somehow it doesn't work...

image.pngimage.pngimage.pngimage.png

3 answers

1 accepted

2 votes
Answer accepted
Rudy Holtkamp
Community Champion
July 14, 2023

Hi @Brian Trepto ,

For reference you can take a look here.

But this should do it:

{{Wahrscheinlichkeit.multiply(SchadenMax))}}
1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 14, 2023

Hi @Brian Trepto 

First, your math expression in the edit is missing one of the curly brackets.  Those should appear in pairs, so try updating that.

Next, when using text values and variables in math expressions, rules sometimes need help with the type conversion.  To do that, please use the asNumber function to convert them before, or as part of, the math expression.  Please look here for more information on that: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#asNumber

Kind regards,
Bill

0 votes
abhishek_sharma03
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 14, 2023

Suggest an answer

Log in or Sign up to answer