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?
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.