How do I write a JRS report to get the list of user stories that are associated with a particular work item in its inheritance chain?
Scenarios:
I need a JRS report that gives me all of the stories that are descendants of Epic1. Please note: The report needs to be generic enough that is doesn't matter how many levels deep the stories are, or what the work item type is that I am using as the search criteria. In other words, Epic1 may be Feature1, or may be Issue 1. How do you do that?
So, to be explicit, the report should return Story1, Story2, Story3, Story4, Story5, and Story6. Story7 and Story8 are not descendants of Epic1, and therefore should not be in the report.
|
2 answers
Hi Kim,
Comments
Kim Williams
commented Jan 23 '18, 2:12 p.m.
Thank-you for this information. I can get started with it. I am wondering, however, if there is a way to write this by using the advanced section to write some custom XML. Does anyone know if there is a way to do it that way?
Kenji Sarai
commented Jan 24 '18, 1:15 a.m.
If you are an expert in writing a custom SQL query, yes - you can do so. You can understand what tables in database are used to get relevant data by creating report as above, and see the generated SQL query in Advanced section.
|
Kenji's response is correct, and I'll just add that there's no way to make the report dynamically include more layers if the hierarchy grows in size -- you'll have to go in and manually add more relationships if necessary. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.