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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,187
Community Members
 
Community Events
184
Community Groups

Calculation between different issues

Hi all,

after reading a lot I am not sure if this is possible at all. Would be great if someone could help with this:

Issue type A contains 1 number field B.
Various issues of issue type A are created and all number fields contain values.
Is it possible to sum up the values of field B of all issues?

I know that calculated fields work within an issue. But is calculation possible between issues?

1 answer

1 accepted

0 votes
Answer accepted
Fernando Eugênio da Silva
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 15, 2023

@Anette Noll 

Is possible calculate the field values between issues. First of all, I'm assuming that the new issues created are associated with the first Issue A with the same linkissue type. On my example, I will use 'Relates to' link type. But feel free to adjust for your case.

 

Define your trigger

Define your Condition

Add a lookupIssues Action:

- Add the JQL: issue in linkedIssues({{issue.key}},"relates to")

 

Change 'Relates to' for the link type you're associating your Issue Types

 

Add your Action for Edit Issue > Select your field:

- In your field, insert this smart value:

{{#=}} {{lookupIssues.customfield_XXXXX.sum}} + {{triggerIssue.customfield_XXXXX}} {{/}}

Replace XXXX for the field ID.

Here is the example of the rule:

Screenshot_110.png

Hope this helps

Regards,

Fernando

Hi Fernando Eugênio da Silva,

thank you for quick response. 

The issues are not associated at all by a link type. Just isolated issues of same issue type.

So this trigger will propabably not help.

 

Regards, Anette

Fernando Eugênio da Silva
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 15, 2023

Hi, Anette

In that case, you can still do this using lookup, but unfortunately you'll have to manually manage these other isolated issues.

My recommendation is that you link them through some link type to make this easier.

For example: if you use something like this in the lookup: issue type = Task

Jira will fetch all the 'Tasks' issues and then the sum of the field, and that won't look right because you'll have more values than you need.

If you link them together, it will work better. Without the link type, you won't have a specific reference to search for these issues and add the values.

Regards,

Fernando

Suggest an answer

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

Atlassian Community Events