Forums

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

Adding multiple form values

Jackie hardy
Contributor
February 11, 2025

Hello,

The below works for 2 values: 

{{forms.last.S2Amt1.plus(forms.last.S2Amt2).asCurrency}}

I am trying to sum additional values but it is not working.

I have tried:

{{forms.last.S3Amt1.plus(forms.last.S3Amt2).plus(forms.last.S3Amt3).asCurrency}} and it is only adding the S3Amt1 and S3Amt2. Any suggestions? Thank you.

1 answer

1 vote
Bob Dalm
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.
February 12, 2025

Hi Jackie,

Have you tried using a math expression like this:

{{#=}} {{forms.last.S2Amt1}} + {{forms.last.S2Amt2}} + {{forms.last.S2Amt3}} {{/}}

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/

Throw that into a variable, e.g. {{result}} and return that as {{result.asNumber.asCurrency}} and you should be good to go. 

Best regards, 

Bob

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events