Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Fetching live data from child issues and displaying them on their corresponding parent card.

Mireya Cintora
Contributor
July 18, 2024

Hello! 

I have this really hopeful dream to have some sort of automation to fetch me data from a child issue and have it displayed on a specified field in the parent card.

  1. Field that counts the total amount of child issues as they are created
  2. Field that adds (or average) up the amount of money recorded in each child issue, and displays the total on the parent. Honestly just running data or averages as our child issues deal with money.
  3. Field that counts the amount of child issues in each status (To-Do, In-Progress, Done).

2 answers

0 votes
Amay Purohit_RVS
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.
July 20, 2024

Hi @Mireya Cintora 

 

If you would be interested in an app to help with roll ups of numeric fields, you may want to try our plugin.

Issue Hierarchy 

The app shows your linked issue hierarchy in a tree view. The app can help you easily Sum up values (time tracking/story point/custom numeric fields) to see overall progress for your Issues at each parent level, in percentage terms. 

Also it allows to filter your linked issue with custom JQL and grouping at parent level as well.

In the example below it shows the child issue statuses at each parent level.

(Disclaimer: I work on RVS, the vendor for this app)

Epic Hierarchy - Children Statuses.PNG

0 votes
Trudy Claspill
Community Champion
July 18, 2024

Hello @Mireya Cintora 

You mention you want to do this for parent/child issues. What are the actual issue types? Are you talking about standard issues (i.e. task, story, bug) and their subtasks? Are you talking about Epics and their child issues (which are standard issue types)?

You can definitely create Automation rules to fulfill those requirements, but I would ask you to consider what problem you are trying to solve by doing this, and is there a better solution?

There are third party apps that can help generate roll-up information without creating custom fields and creating new automation rules. Perhaps that would be a better solution.

Automation Rules would require you to add more custom fields. Updating the fields in real time with the changes happening in the child issues could result in a large number of automation rule executions.

Is this for just one project or many projects? If this involves Team Managed projects and Company Managed projects you would have to have different rules for each Team Managed project. 

 

Mireya Cintora
Contributor
July 20, 2024

@Trudy Claspill 

They are the Epics and their child issues. I did look into the third part apps but at the moment my employer wants to limit the amount of these third part applications, so I must find a way to do with automations. 

Updating the fields in real time with the changes happening in the child issues could result in a large number of automation rule executions. 
- Would that run our project/issue slower?

This will just be a for one project that is Team Managed. 

 

Trudy Claspill
Community Champion
July 20, 2024

Hello @Mireya Cintora 

I have not heard that Automation Rules cause other project/issue processing to slow down.

You should check with your administrators about the potential for the execution of these rules (there will be more than one) combined with any other rules that run to bump your instance over the usage limit for Automation Rules. Refer to

https://support.atlassian.com/cloud-automation/docs/how-is-my-usage-calculated/

I have some additional questions about your requirements.

1. Field that counts the total amount of child issues as they are created

If a child issue is removed from an Epic, do you want the count of child issues in the Epic updated?

If a child is added to an Epic at a later date (after the creation of the child was completed) do you want the count of child issues in the Epic updated?

 

2. Field that adds (or average) up the amount of money recorded in each child issue, and displays the total on the parent. Honestly just running data or averages as our child issues deal with money.

You need to define this requirement. Do you want the amounts from the child issues totaled and displayed in the Epic, or do you want an average displayed in the Epic? If an average, how do you want that calculated; total of amounts in children divided by number of children?

Do you want this value to be updated as child issues are added and removed from the Epic?

Are the values in the child issues subject to change? If they change, do you want the information in the Epic updated?

 

Field that counts the amount of child issues in each status (To-Do, In-Progress, Done).

Are those the only statuses used in the child issues? Are those all the statuses used by the child issues?

Is the workflow likely to be changed so that any of those statuses are removed, or new statuses added?

Do you want these counts updated as the child issues move through their workflows?

Do you want these counts updated if child issues are added/removed from the Epics?

Mireya Cintora
Contributor
July 24, 2024

@Trudy Claspill 

Thank you for the automation heads up, we indeed are about to hit our max amount of rules ran for the month. 

1. If a child issue is removed from an Epic, do you want the count of child issues in the Epic updated?

  • Yes please. 

If a child is added to an Epic at a later date (after the creation of the child was completed) do you want the count of child issues in the Epic updated?

  • Yes please. 

2. Do you want the amounts from the child issues totaled and displayed in the Epic, or do you want an average displayed in the Epic? If an average, how do you want that calculated; total of amounts in children divided by number of children?

  • Child issues: I want to total amount displayed on the epic
  • The average would not apply to the child issue count. Sorry for the confusion, what I meant is we have a field named Max Amt (number field) that lives in each child issue, and would like the average of that field to display on the epic. 
  • We have another number field that lives in the child issues (Additional Monies). What I would like is for there to be an automation that sums up all the additional monies in each child issue and displays the total in the epic issue. 

Do you want this value to be updated as child issues are added and removed from the Epic?

  • Yes please.

Are the values in the child issues subject to change? If they change, do you want the information in the Epic updated?

  • 95% of the time they will remain the same value. For that 5%, then yes I would like the epic to be updated. 

3. Are those the only statuses used in the child issues? Are those all the statuses used by the child issues?

  • No there are a total of 5 statuses dedicated to child issues.

Is the workflow likely to be changed so that any of those statuses are removed, or new statuses added?

  • Very unlikely. 

Do you want these counts updated as the child issues move through their workflows?

  • Yes please. 

Do you want these counts updated if child issues are added/removed from the Epics?

  • Yes please. 
Trudy Claspill
Community Champion
July 24, 2024

Regarding #3 is the only acceptable solution one where that information is visible in the details view of each Epic?

I ask because you can get the same information using a Saved Filter and the Two Dimensional Filter Statistics gadget on a Jira Dashboard. And that would eliminate the need for a 5 more custom fields in your Epics and increasing your rule execution usage.

Using a saved filter like this:

project=<insert your project here> and Parent is not empty and issuetype in standardIssueTypes()

You can add the Two Dimensional Filter Statistics gadget to a Dashboard you create in Jira. You set the gadget configuration to use that saved filter, set the X-axis to Status and the Y-axis to Parent. 

Screenshot 2024-07-24 at 3.09.06 PM.png

That will give you a table that lists the Epics and the number of child issues in each status for each Epic. Example:

 

Screenshot 2024-07-24 at 3.10.54 PM.png

Trudy Claspill
Community Champion
July 24, 2024

Regarding #1 you could accomplish this also with the Two Dimensional Filter Statistics gadget in a Dashboard.

Set the X-axis to Project, and that will give you a count of all the child issues per Epic.

Screenshot 2024-07-24 at 4.52.35 PM.png

 

And, while there is not a native gadget to sum or average child issue values in a similar manner, if you are open to acquiring a third party app then I'm pretty sure one exists that would provide a dashboard gadget for that also.

Mireya Cintora
Contributor
July 25, 2024

@Trudy Claspill 

My apologies i have never used the JQL on Advanced Search, is this what it would look like?

Screenshot 2024-07-25 101318.png

I tried inserting the project name, key  and URL but unsure what I need to do when using JQL...

 

EDIT: Nevermind i figured it out! I just needed to remove the <> :

project = ARNEGS AND parent is not EMPTY AND issuetype in standardIssueTypes()

Screenshot 2024-07-25 102457.png

Now I have one other issue, it shows there are 699 unique parent issues which I am assuming they count as unique based on the Summary field (Member Name) of the epic issue correct? If so, that would no work since we may have the same member but is at a different provider facility. For our parents, they are unique if the combo of the member name ad facility are different. 

Second, is there a way to only pull specific statuses instead of all the ones that exist in the project?

Trudy Claspill
Community Champion
July 25, 2024

Hello Mireya,

The count of Epics is based on the issue key of the Epics. The Parent field stores the issue key of the Epic. The dashboard gadget displays the Summary from each Epic rather than the issue key. If some Epics have the same Summary they should show up in the list once for each unique Epic issue key.

Second, is there a way to only pull specific statuses instead of all the ones that exist in the project?

You can limit the issues selected based on their status. You would add criteria to your query thus:

project=ARNEGS and Parent is not empty and issuetype in standardIssueTypes() and Status in (<comma separated list of the Status values you want to include>)

For example

project=ARNEGS and Parent is not empty and issuetype in standardIssueTypes() and Status in ("To Do", "In Progress", "Done")

Mireya Cintora
Contributor
July 25, 2024

@Trudy Claspill 

Oh perfect it worked with the specified statues. Regarding the unique issue keys, when I export all the unique keys there are 2903 give or take some. But the gadget only displays 693 rows. 

Now that this JQL and dashboard has opened more opportunities, can I adjust the filter of instead of grouping by parent, to group by a custom field? I tried to change the X and Y axis but could not find the field I was looking for.

Trudy Claspill
Community Champion
July 25, 2024

I notice in your post tags you have indicated that you are using the Premium product plan.

Has the Issue Type Hierarchy in your instance been extended such that you make Epics children of another issue type, like Initiative? If so, that would require a change to the filter. The issue types above Epic are technically classified as part of the "standardIssueTypes()" group, so the filter would need to be adjusted to exclude those higher level issues.

Trudy Claspill
Community Champion
July 25, 2024

You said:

when I export all the unique keys there are 2903 give or take some. But the gadget only displays 693 rows.

How are you "exporting all the unique keys"? There should be a row for each unique Epic issue key. 

 

can I adjust the filter of instead of grouping by parent, to group by a custom field? I tried to change the X and Y axis but could not find the field I was looking for.

Not all custom fields are supported are supported in the gadget. What is the field type of the fields you want to use?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events