Forums

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

Query two-levels hierarchy in Jira

Natallia Shalakhanava
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 16, 2016

Hello,

Can you please help me with Filter query, that is searching for all issues, that belong to the epics, which, in its turn, are children of one specific ticket of type Initiative?  

I can for example find all epics of the initiative with this query "Parent Link" in (initiative_id)" or to find all issues of epic with this query "Epic Link" in (epic_id)", but I don't understand how to put one query into another. It seems that JQL doesn't support such functionality.

Can you please give me some hints for this problem?

Thank you,

Natallia.

2 answers

1 accepted

1 vote
Answer accepted
Paul Greig
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 10, 2013

Hi Tyler,

While it would require some additional development you can query issue links from the REST API using the following example:

curl -D- -u <user>:<pass> -X GET -H "Content-Type: application/json" https://<instance>/rest/api/latest/search?jql=project=<projectkey>&fields=summary,issuelinks

From the response, you would want the data within "issuelinks", "outwardIssue" and "inwardIssue"

Cheers,

Paul

Joseph Cheek
March 24, 2014

hmm, is 'additional development' an option for OnDemand? I would love to be able to filter my kanban swimlanes based on number of blocking tickets.

0 votes
AC
Contributor
September 22, 2015

Hi Paul,

 

I am new to JIRA cloud and trying to find some way to query issue sin JIRA which can show me some specific filed (version) for linked issues .

Came across your answer and tried but i m not sure how to use it in this scenario to achieve my goal and how to view the output inside JIRA interface ?

 

Can you please tell me where to fire this curl command to view o/p inside jira?

Paul Greig
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 22, 2015

Hi An, the answer above is external to JIRA. The command uses the REST API to return the results to your command line. I don't believe issue link queries can be run inside JIRA via JQL.

Glenn Watkins
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2018

Hi 

 

Does anyone know if this has been resolved as of October 2018?

 

Thanks

Glenn

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events