The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to add two field values and combine them into original estimate field

Manikandan Kaliyaperumal
June 27, 2022

I am trying to figure out how I can add two values (from two different fields) that I have from a ticket. I want to add the values from them into original estimate field 

Would I use the the 'more options' section on the project automation page? The format is shown like this but I am not sure how to two values into one field.

 {
"fields": {
"environment": "Thanks for raising {{issue.key}}.",
"labels": [
"bugfix",
"blitz_test"
],
"Custom Field Name": {
"value": "red"
}

 

And also i have to multiply the value after addition by 60. Since we are getting them in hours and needs to be multiplied by 60 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2022

Hello @Manikandan Kaliyaperumal ,

Thanks for reaching out to the community, and if the two fields you are combning are number fields you should be able to add the fields together then do the multiplication using "Jira smart values - math expressions" in a edit action to set the field value with something like:

{{#=}}{{issue.custom field 1.plus(issue.custom field 2)}} * 60{{/}}

Check it out and let me know if you run into any issues

Regards,
Earl

Manikandan Kaliyaperumal
July 5, 2022

Thank you! It worked Perfect.

Like • Earl McCutcheon likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events