You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am using Jira cloud and need a Jira filter that shows me any epics (this is the parent issue) that are "in progress" but do not have any task, story or bugs (these are the children issues) in the current sprint or future sprints.
I have already tried the following filter:
issuetype = Epic AND status = "In Progress" AND project IN ("Project Names Here") AND "Epic Link" is EMPTY AND issueFunction not in hasLinkType("blocks") AND issueFunction not in linkedIssuesOf("issuetype in (Task, Story, Bug) AND Sprint in openSprints()") AND issueFunction not in linkedIssuesOf("issuetype in (Task, Story, Bug) AND Sprint in futureSprints()")
I am getting a return of "no results found". I know this is not correct as I added in a test epic that fulfills this criteria.
Thanks for the help!
Hi @Ali Jacobsen ~ try this:
issuetype = Epic AND status = "In Progress" AND not issueFunction in linkedIssuesOf("Sprint in openSprints()", "has Epic") AND not issueFunction in linkedIssuesOf("Sprint in futureSprints()", "has Epic")
Thank you so much for your response!
In theory it wants to work, but I have an error message that comes up saying "The "linkedIssuesOf" JQL function provided by "Adaptavist Scriptrunner" for Jira Server works differently in Jira Cloud. Run it directly in "Enhanced Search" instead. See the documentation for more details: https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-jql-keywords-functions"
Unfortunately my company is not currently subscribing to Enhanced Search. Thoughts on how to work around this obstacle?
Or this obstacle? As I ran it in ScriptRunner to see if it would work and came up with this error:
So kind of stuck. Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ali
You get Enhanced Search included as a feature of ScriptRunner for Jira Cloud, so technically you are already subscribing to the same functionality as Enhanced Search under the ScriptRunner Enhanced Search feature.
When running a query in ScriptRunner Enhanced Search, it can try to process a large amount of issues and this can take a long time. Due to limitations on Cloud, if the request takes more than 30 seconds to process, it will not be able to return results and you get the following error:
A way to avoid this is by trying to be more specific in the jql inside the ScriptRunner Enhanced Search function "linkedIssuesOf".
For example using
linkedIssuesOf("Sprint in openSprints()", "has Epic")
The first parameter of the linkedIssuesOf function "Sprint in openSprints()", will try to get every open sprint for every project in your instance. If you have hundreds of projects, this will mean getting hundreds of sprints. It will then look at getting all of the issues in all of the open sprints. This could be 1000 issues, if you have 10 issues in each sprint. It will then have to process which issues are linked to those tickets depending on the specified link type.
Compared to
linkedIssuesOf("project=PROJ1 and Sprint in openSprints()", "has Epic")
This will try and get the open sprints from only one project and therefore, return only 10 issues if there were 10 issues in that sprint.
You can see the order of magnitude of processing has reduced significantly by narrowing down the criteria in the first parameter in the "linkedIssuesOf" function.
If you need further help, we have a great support team available for ScriptRunner for Jira Cloud customers.
Best regards
Romy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The filter you provided seems close to what you need, but there might be a small issue with the syntax. Try the following modified filter:
issuetype = Epic AND status = "In Progress" AND project IN ("Project Names Here") AND "Epic Link" is EMPTY AND issueFunction not in hasLinkType("blocks") AND issueFunction not in linkedIssuesOf("issuetype in (Task, Story, Bug) AND Sprint in openSprints()") AND issueFunction not in linkedIssuesOf("issuetype in (Task, Story, Bug) AND Sprint in futureSprints()")
Make sure that the project names are correctly specified and enclosed in double quotes if they contain spaces. Also, ensure that the "Epic Link" field is indeed used for linking epics to child issues.
If the issue persists, consider checking the Jira version and whether any custom configurations might affect the filter results. If needed, you may seek assistance from your Jira administrator for further debugging.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.