Sum up fields in sub-tasks and show the result in story

I have a list of sub-tasks let say sub-task 1, sub-task 2 and sub-task 3, now I have fields design and build on all the sub-tasks.

Now I enter 1 for design and 2 for build on all the sub-tasks, I should see the result of 3 for the design field in the story and 6 for build field.

How can this be achieved, is there a add-on to get pass this issue?

2 answers

1 accepted

Hi Bharath,

You can do this with our Structure plugin if you're on self-hosted JIRA and you only need those summed values for reporting purposes.

It can sum the values of any numerical fields up through any number of levels of hierarchy (Stories, Epics, Initiatives - as many layers as you like), however they will only be displayed in the Structure plugin (or its dashboard/confluence/JIRA issue page gadget).

Using Structure just for this purpose would be overkill, but it has plenty other uses in project/portfolio management..

 

Cheers,

Robert

0 vote

I'm sorry, the question doesn't read too well and I'm confused.  Could you explain what you are filling in to these assorted fields and what the "result" field is (give us the logic and/or arithmetic that fills the field and explain where it appears)

Below is some more explanation

 

  Story  
  Field 1 = 1+5+3  
  Field 2 = 3+6+4  
     
Sub-Task 1 Sub-task 2 Sub-task 3
     
Field 1 = "1" Field 1 = "5" Field 1 = "3"
Field 2 = "3" Field 2 = "6" Field 2 = "4"

 

So I here have 3 sub tasks having the fields (field 1 and field 2) I should be able to aggregate these values and show the sum of them in the story issue type, please let me know if the explanation gives good understanding of what I am trying to say if not I would explain more.

 

Gottit, that's helped.

You have a few options here, but I think the easiest one is to write a "post function" or "listener" that can pick up the changes to any subtask, and cause the parent to re-scan all of its sub-tasks for the numbers, recalculating them and then posting the value to the parent, and triggering it to re-index.

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

691 views 6 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you