Forums

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

Querying multiple Parent Items in single query

JD March 31, 2025

Hi - How do I add multiple Parent Items to this single query? where my Parent Items are: 28972, 20810, 27024?

 

issuefunction in issuesInEpics("\"Parent Item\" ~ 28972") and issuetype = defect and status not in (Closed, Cancelled, Resolved, DEFERRED, DONE)

3 answers

2 accepted

0 votes
Answer accepted
Pasam Venkateshwarrao
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.
March 31, 2025

Hi @JD 

Welcome to the community,To achieve this you have to use Third-party Add-on Script Runner,In Jira Cloud you can only use the issueFunction() JQL function provided by ScriptRunner on the Enhanced Search page as described in the documentation here.

Example:

project = ABC AND issuetype = "Epic" AND resolution = Unresolved 
AND issueFunction in linkedIssuesOf("resolution != Unresolved", blocks) 
AND NOT issueFunction in linkedIssuesOf("resolution IS EMPTY", blocks)

 Hope this helps

Pasam Venkateshwarrao
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 2, 2025

@JD is your query resolved or still finding any other solution

JD April 3, 2025

Hey. I found a way to join the IDs. I pretty much created multiple queries and joined them. 

Thanks all for the help. 

0 votes
Answer accepted
Trudy Claspill
Community Champion
March 31, 2025

Hello @JD 

Welcome to the Atlassian community.

Do you know if you are working with Jira Cloud or Jira Data Center?

Is "Parent Item" a custom field you have added to your issues? If so, what type of custom field is it?

For subqueries that you want to use in functions like issuesInEpics() I recommend that you use the native Jira issue searching UI to construct the subquery. That will ensure you get the correct syntax.

0 votes
Clark Everson
Community Champion
March 31, 2025

Hi @JD 

Welcome to community!

ScriptRunner actually functions different on the data center and on the cloud. Can you add more details about your instance as it will influence how folks answer the question!

Best,

Clark

Suggest an answer

Log in or Sign up to answer