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: 

Sum and Division to Edit Parent Issue

Enmanuel V_
August 12, 2024

 

I have created a rule that should calculate the total sum of 2 separate fields (story points and "progress(%)") the result should appear in two new fields with the prompt "Total xxxxx" of each one, then I should divide those total values ​​to send them to a field in the parent issue "HU - Progress(%)". My problem is that the "Total" fields are edited to "0" therefore they do not edit the "HU" field.

the customfield are Numeric type.
Screenshot_26.pngScreenshot_27.pngScreenshot_28.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 12, 2024

Hi @Enmanuel V_ -- Welcome to the Atlassian Community!

With Jira Data Center automation rules, the Lookup Issues action currently only supports a few fields, and it does not support custom fields: https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html#Jirasmartvaluesissues-lookupissues-properties

Here is the suggestion to add those other fields, which you may watch / vote for to see progress: https://jira.atlassian.com/browse/JIRAAUTOSERVER-877

 

For your scenario, a workaround is: instead of using Lookup Issues, use the REST API to call an issue search with the same JQL, using the Send Web Request action.  Then the fields could be summed from the web response.

If you want to try that approach, here is a how-to article for calling a REST API function from a rule and the function I believe is needed:

 

Kind regards,
Bill

Enmanuel V_
August 12, 2024

Hi Bill, i didn't know that, thank you so much for your support, i will try to apply you option and see how it goes!

 

Like Bill Sheboy likes this