Specific script runner query: Show me multiple levels of linked issues

Hi - I've had a look around the answers section and haven't been able to find an answer to this particular question.

To give a bit of context; the way this particular project is setup is as follows:

  1. All customer requests are logged as an issue type of "New Request"
  2. Once the request has gone through analysis, it is broken down into epics / stories accordingly, with the top level request relating to the subsequent epic(s), and the stories linking to the epic(s).
  3. Therefore general hierarchy = New Request > Epic(s) > Story(ies)

Is it possible to construct the following query?

I want to be able to see all issues of New Request, and for each New Request see a list of linked Epic / Story IDs (and if possible their status)


1 answer

0 vote

You need linkedIssuesOf . Once you have the first query working you can use that as input into the second. You will also need to OR it with the first query, so you get both the issues and their linked issues.

You will end up with a big ugly query but by saving intermediate filters and using linkedIssueOf("filter = foo") you can decompose it.

Ordering them so that the linked items appear with the issue they are linked from is more tricky.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

523 views 1 18
Join discussion

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