Forums

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

how to find parent issue with JQL?

ClaireYang
Contributor
April 8, 2019

Hi,

If I get a subtask issue key, how can I find the corresponding parent issue id with advance JQL in Issue Navigator?

Thank you!

Claire

1 answer

1 accepted

0 votes
Answer accepted
Prakhar Srivastav {Appfire}
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.
April 8, 2019

@ClaireYang 

If you have scriptrunner then you can use subtask functions.

Take a look at below url :

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_subtasksof

 

Regards

Prakhar

ClaireYang
Contributor
April 9, 2019

Hi Prakhar,

Thank you for your advice. I need to get the issue id of the parent issue, so I use issuefunction 'parentsOf()'.

Below is my JQL:

issueFunction in parentsOf ("project = RDPMS and issuekey = RDPMS-8")

Like • Prakhar Srivastav {Appfire} likes this
shetty
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.
April 9, 2019

I'm getting error for above JQL Query

 

Error detail:

Field 'issueFunction' does not exist or you do not have permission to view it.

Like • benjamin likes this
ClaireYang
Contributor
April 9, 2019

@shetty  You need to install Script Runner add-on, then you can use 'issueFunction' JQL search.

Like • Ana Paula S_ Figueiredo likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events