Forums

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

How can I create a Scriptrunner JQL to list all open tickets (Epics) linked to closed deliverables

Bisi Ade
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!
November 12, 2025

Hi all, I need a JQL query that returns all open tickets which are linked to closed deliverables.

I'm new to Jira and Scriptrunner, and the queries I've tried so far are returning errors. My goal is to identify any open epics where the parent(objectives) has a status of done.

Could anyone please help with the correct JQL or example for this?

Thanks so much for your help.

 

2 answers

2 accepted

Suggest an answer

Log in or Sign up to answer
2 votes
Answer accepted
Tudor Tofan
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.
November 12, 2025

Hi @Bisi Ade !

The JQL query should be something like this:

issuetype = epic and statusCategory != done and issueFunction in portfolioChildrenOf("issuetype = objectives and status = done")

For this, you definitely need Scriptrunner as the "portfolioChildrenOf" function is not standard JQL and only comes with the addon.

Also, you haven't mentioned the hosting type for your Jira installation. I can confirm this is working on DC. I will come back with a confirmation for Cloud as well.

 

1 vote
Answer accepted
Gor Greyan
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.
November 12, 2025

Hi @Bisi Ade ,

Welcome to the Atlassian Community!

Try this one, it works on my side.

issuetype = Epic AND statusCategory != Done AND issueFunction in linkedIssuesOf(
"issuetype = deliverable AND statusCategory = Done")

Bisi Ade
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!
November 12, 2025

That works! Thank you so much @Gor Greyan 

Like Gor Greyan likes this
Gor Greyan
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.
November 12, 2025

Dear @Bisi Ade

Glad to help.

Evania Zhang
Community Manager
Community Managers are Atlassian Team members who specifically run and moderate Atlassian communities. Feel free to say hello!
November 12, 2025

@Bisi Ade Thank you for your post!

In order to stop receiving notifications for this post, please click on the Watch/Unwatch feature (looks like an eye) below your post. 

TAGS
AUG Leaders

Atlassian Community Events