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 edited

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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events