Forums

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

Automation rule runs successfully but does not update or set the value of Custom field

Rahul Mishra April 18, 2025

Hi Team,

Please help me. I have two custom fields in JSM form. I wanted to show the sum of those two fields into the third custom field. As Indicated in the JSM Form screenshot.

JSM.png

customfield_10115 is for Price-1 and customfield_10116 is for Price-2

Below is the rule that I have written.  RecurringTotal28Days is the custom field where I want to set the total of above two custom fields {{#=}}{{issue.customfield_10115}} + {{issue.customfield_10116}} + 0 {{/}}Rule.png

The Rule is running successful but it is not setting the value for RecurringTotal28Days field

below is the screenshot

final.png

The steps that I am following to check if the Value in the RecurringTotal28Days is getting set or not.

- Going to the Issue List

- Selecting an existing Issue to change it.

- Changing the Values of both Price 1 and Price 2 and submitting the Issue but the value for the Custom Field "Recurring Total" remains blank.

Requesting an urgent from all of you

-    

2 answers

1 vote
Aaron Pavez _ServiceRocket_
Community Champion
April 18, 2025

Hi @Rahul Mishra 

Do you want to see the value in the form? Or in the custom field tied to the form field?

If it's the first, it can't be done in the form. just afterwards. The automation doesn't run till you create the work item.

If it's the second, make sure the custom field is the right one and the field that gets the sum is the custom field not the form field.

You can do it as they mention here:

https://community.atlassian.com/forums/Jira-questions/Using-Automation-to-Sum-multiple-custom-fields/qaq-p/1957161

Regards - Aaron

Rahul Mishra April 18, 2025

@Aaron Pavez _ServiceRocket_ Thank you so much. I worked when I created the New Issue using the JSM Form and after submission it showed me the sum. so half of my problem is resolved.

Earlier I was editing the already submitted issue, in that case the rules was running but it was NOT updating the value of the RecurringTotal28Days Custom field. 

Can I create an Rule that can update the value of custom field RecurringTotal28Days linked to the form field ?

Thanks in Advancd

0 votes
Richard
Contributor
April 18, 2025

What is the field type for customfield_10115 and customfield_10116?

If these are text fields, I don't think you can do math on them. Maybe they need to be number fields.

Rahul Mishra April 18, 2025

They are Number Type

Rahul Mishra April 18, 2025

Even the RecurringTotal28Days is also the number field

Suggest an answer

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

Atlassian Community Events