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 edited

 

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.png Screenshot_27.png Screenshot_28.png

1 answer

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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events