Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,163
Community Members
 
Community Events
165
Community Groups

Create Issue filter with "no linked" issue

we have ticket type in JIRA called "incident" with an option to link it to another ticket type called "improvement" . 

The link type is "relates to" 

How can i search for "incident" tickets that does not have linked "improvement" to it ? 

i am trying to use "Issues" --> "Filters" but cant find the correct syntax for my needs. 

Oren 

4 answers

1 vote
Tarun Sapra Community Leader Mar 19, 2017

It's easy if you have the "script runner" plugin installed -

type = incident and issueFunction not in linkedIssuesOf("type=improvement","relates to")

Just a head's up as you haven't explicitly called out whether you're on server or cloud that although you can install Scriptrunner for cloud, the additional JQL only works on server. 

With script runner on JIRA cloud there is a new feature JQL Keywords.

You have to synchronise issues and then you can user in advanced JQL the keyword :  numberOfLinks

project = PRJ AND issuetype = Type AND numberOfLinks = 0

See doc : https://docs.adaptavist.com/sr4jc/current/scriptrunner-jql-keywords-functions/jql-keyword-examples#id-.JQLKeywordExamplesvCurrent-numberOfLinks

Well, the title says "no linked" issues, which ideally means that I want to find issues that do not have anything linked to them. At least, that is what I came looking for. If someone else is looking for the same, here is the solution for it:

project = XYZ AND issueFunction not in hasLinks()

Hi,

Currently it is not possible. Check this post for some alternatives and additional information:

https://answers.atlassian.com/questions/166537

 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

159 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you