Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to generate a nested query for linked issues (recursive)?

I need to create a filter which not only provides the linked issues of a given issue, but can repeat the same recusevely (excluding the ones already listes).

The scenario is as follow:

- An Epic is created.

- Linked to it, multiple User Stories are created, representing the requirements.

- Under each user Story, feature/task issues are created which reffer to the implementation.

- Under the Story and the Epic, Test Cases are created as well.

Now, the need is to have a report showing all if the items related to the specified epic. One options if to link all issues to the same epic, another option is to keep hirarchy of links and use kind of a smart query, for now, I look for the second non trivial option.

Has anyone ever tried to do something like this?



2 answers

1 accepted

3 votes
Answer accepted

Try reading Nicholas Muldoon's post here...

For a first step, you can get the stories of unresolved epics with:

issueFunction in linkedIssuesOf("issuetype = Epic and resolution is empty", "is epic of")

(linkedIssuesOf docs).

Then to get nested linkages, in theory it's just a case of embedding more linkedIssuesOf, eg:

issueFunction in linkedIssuesOf ("issueFunction in linkedIssuesOf(\"issuetype = Epic and resolution is empty\", \"is epic of\")", "has task")

It's a bit of a pain because you need to escape your double quotes in the subquery bit. It's a further pain because it doesn't seem to work properly, probably due to a programming error on my part which I will fix soon.

Here is what I have. I know I have hardcoded the epic numbers, but it works. Need to refine my query:


"Epic Link" in (Epic1, Epic2, Epic3) and type in (Story,"Test Case",Defect) and status!=Done order by "Epic Link"

Suggest an answer

Log in or Sign up to answer

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you