Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

JQL to find related issues that have a specific summary text

Sean Naubert
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!
Oct 18, 2023

I am looking to have a query return Stories that don't have a related item if related item doesn't have specific text in the summary. 

 

Example of what I am trying to do....

(issueFunction in hasLinkType("Relates") AND related issue summary !~ "TEST")

2 answers

1 vote
Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Oct 24, 2023 • edited

Hi @Sean Naubert,

welcome to the community!

The "issueFunction in" syntax comes with the ScriptRunner app. I'm not an expert myself, but it may be worth checking out the app documentation or reaching out to the vendor.

On somewhat of a meta level: 

Unfortunately, the problem that you are describing is trickier than one might think; as a hierarchical query, it would really require some kind of join or subquery, which isn't available in plain Jira/JQL. You'll need extra tooling for that.

A few directions forward:

  • There's different apps from the Atlassian Marketplace that extend JQL by additional functions, including hierarchy- and issue-link-related functions. ScriptRunner is one of these apps.
  • Alternatively, you could try one of the more hierarchy-focused apps from the Marketplace. These apps typically have their own ways of figuring out parent/child relationships between issues, and provide more powerful ways of searching through issue hierarchies. I myself work on such an app, in which your use case would be easy to solve - I'll provide more details below.

Hope this helps,

Best,

Hannes

Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Oct 24, 2023

Just to expand on the last point, this is how this would look in the app that my team and I are working on, JXL for Jira. Put simply, you'd create a sheet with all issues that are potentially relevant to you, configure an issue hierarchy based on "relates to" issue links (that's just a couple of clicks), and then use JXL filtering capabilities to narrow down to the issues that you care about: 

issue-link-filtering.gif

Once you have your list of issues, you can work on these directly in JXL (much like you'd do in e.g. Excel or Google Sheets), trigger various operations in Jira, or export them for further processing. 

Since you've tagged your question for Jira Server: As you may have heard, apps sales have ended for Jira Server. Are you planning to migrate to Data Center or Cloud? I'd strongly recommend that. If you need some more time, JXL is perfectly compatible with Jira Server; it's just that we need to generate a license for you. If the above looks interesting, just let me know, and I'll happily start a free trial for you.

Any questions just let me know!

1 vote
Ravina
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.
Oct 20, 2023

Hi @Sean Naubert This will not work directly to use "!~" in the JQL, you need to save the above filter query  and then run the below JQL against that

filter != Your-filter-name

Please check the below Atlassian document for more details 

https://confluence.atlassian.com/jirakb/jql-queries-search-for-issues-that-do-not-contain-text-1018761257.html

Thanks

Ravina

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events