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,297,932
Community Members
 
Community Events
165
Community Groups

I'm looking for a JQL to display stories that do not have test cases linked to them (traceability)

Every time we create a test case, we immediately make sure it is linked to a story. When I open the story in the active sprint, I can see which test cases are linked in the "traceability" part of the story.

Now I'm looking for a JQL to make a quick filter that makes sure only the stories that do not have at least 1 test case linked to them are visible.

Could anybody help with that?

Thanks in advance!

2 answers

1 accepted

0 votes
Answer accepted

with scriptrunner you have the hasLinks issueFunction

issueFunction not in hasLinks("[link name]")

You have all the info in

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_haslinks

Thank you for your swift response!

One more question: what exactly do I replace "link name" with in order to find any test cases? I have tried some things, but can't seem to get it to work.

Thanks!

which case test manager are you using? probably I misunderstood your question.

We're using Adaptavist for our test cases, but while looking for a way to do it with your script, we found a working solution.

We used this to get it to work:

issue not in hasTestCoverage()

Nice, glad that it helped in any way.

Like Jeroen Bossuyt likes this

Is there any possibility for Jira Cloud users with Zephyr Scale Tests?

Suggest an answer

Log in or Sign up to answer
TAGS

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