Is this possible for JQuery?

Sherwin Soriano
Contributor
March 5, 2025

We wanted to query all story issue types in specific boards that we have. Story has a parent epic issue type.

Query is Project = "Project A" and issue type = "Story" and status = "Backlog".

My manager is asking if the query can be limited to stories in which the epic parent status is equal to "In Progress".

Is this possible?

2 answers

1 vote
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 5, 2025

Hello @Sherwin Soriano 

Do you have any third party apps that extend JQL capabilities, like the ones listed here?

https://marketplace.atlassian.com/search?query=JQL&product=jira&hosting=cloud&sort=relevance

What do you want to do with the results?

With only native JQL capabilities you will not be able to achieve your requirement.

Depending on what you want to do with the results, you might be able to get the results using an Automation Rule.

0 votes
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 6, 2025

Hi @Sherwin Soriano 

 

This is tricky but doable. But you need the jql functions from the script runner plugin 

The query is like this:

status != Done and 
    issueFunction in linkedIssuesOf("status = Done", "has epic") and 
    not issueFunction in linkedIssuesOf("status != Done", "has epic")

To translate this:

status != Done: Find epics that are not done. You might need to change the status names

issueFunction in linkedIssuesOf("status = Done", "has epic"): This is the tricky but... find issues that have a "has epic" link to an issue with status = Done.

not issueFunction in linkedIssuesOf("status != Done", "has epic"): Even harder here is the requirement that all the linked issues must be Done, so we filter out any epics that that have stories that are not done.

Not the sort of thing you could expect a user to do but you might be able to set it up for them.

 

Hope this helps

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events