Forums

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

Ability to add two custom field values into third custom field

Vinay Jha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 29, 2024

I have got 3 custom fields (numeric) say Field-A, Field-B, Total. I want to automatically add Field-A and Field-B and store into Total when an issue is created. Is that possible?

2 answers

0 votes
CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
January 29, 2024

You can do this through Automation.

just create a trigger as issue created and add condition if there is any like issuetype equals to task like that.

next add action like edit fields and choose total and set value as

{{issue.fields.customfield_10123}} + {{issue.fields.customfield_11952}} and save it. now when ever you create task issue then total will be updated with addition of those two other fields.

 

note : update field ids according to chosen fields 

0 votes
Trudy Claspill
Community Champion
January 29, 2024

Hello @Vinay Jha 

Yes that is possible with Automation Rules.

The Trigger would be Issue Created

You would then need an Edit Issue action.

In that action you would select the 'Total' field as the one you want to edit.

The field for specifying the value might automatically fill with a phrase like 'Copy from Current Issue'. If it does you would need to click the three dots to the right of the field and select SET instead.

Then you would need to enter the correct syntax to set the field to the sum of the other fields.

That would be something like

{{issue.Field-A.plus(issue.Field-B)}}

You can learn more about Automation Rules here

https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

There are sections in the documentation to teach you about all the components of rules, smart values, and how to manipulate them with things like math functions.

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