Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Sum custom field in Task and Story

Ismael
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!
November 5, 2024

Hi,

 

We need to create a rule 

I need to create a rule that is capable of adding a faithful custom called Story Point (Portfolio) of all the tasks of the Story and Task type, and the sum is displayed in a field called Current Story Point, located in the Epic.

1.png2.PNG3.PNG

 

1 comment

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 5, 2024

Hello @Ismael Vicente-Zabalegui 

Welcome to the Atlassian community.

Is that the entirety of your rule; 3 components?

If so, one problem is that the {{lookupIssues}} list is only populated if your use a Lookup Issue action. You don't appear to have one of those. Refer to this page for details on the Lookup Issues action.

https://confluence.atlassian.com/automation/jira-automation-actions-993924834.html

Second size is not the correct function so sum up numeric values from a list of issue. The correct function is sum. Refer to this page for more information about functions you can use with lists of issues.

https://confluence.atlassian.com/automation/jira-smart-values-lists-993924868.html

 

Note that the above page references are for the latest version of Jira Data Center. You should change the version selector in the upper right corner to the version that matches what you use to get the documents that align with that version.

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.
November 6, 2024

Hi @Ismael Vicente-Zabalegui -- Welcome to the Atlassian Community!

Adding to Trudy's answer...

If you want to sum a custom field and save the result in another issue, you cannot use the Lookup Issues action; that action does not support custom fields for the Data Center version of automation rules yet: https://jira.atlassian.com/browse/JIRAAUTOSERVER-877

The possible workarounds depend upon your rule structure, and you likely would need to call the REST API issue search with JQL, using the Send Web Request action, and then sum the field from the web response.

Kind regards,
Bill

Like Trudy Claspill likes this

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events