Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Help With Query to find User stories without a linked zephyr test

michael mittiga
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!
April 10, 2025

Trying to create JQL query that will identify all User Stories for a specific fixversion that do not have a zephyr test ticket linked to them.

Nothing seems to work using the jira issue navigator or Script Runner


This Query is timing out on me in Script Runner:

project = ABCD AND fixVersion ~ "*1.22" AND issuetype in ("User Story", Bug) AND issueFunction not in linkedIssuesOf("issuetype = Test")

Any help or suggestions would be appreciated. 

1 answer

0 votes
Divya Shree
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.
April 11, 2025

Hi Michael,

Welcome to Atlassian Community! Here you are trying to fetch all User Stories and Bugs from a specific FixVersion that do not have a Zephyr Test linked. The current query using issueFunction not in linkedIssuesOf(...) is timing out because it's too heavy without a specific link type. I suggest the below query:

project = ABCD
AND fixVersion ~ "*1.22"
AND issuetype in ("User Story", Bug")
AND issueFunction not in linkedIssuesOf("issuetype = Test", "tests")

Make sure to replace "tests" with the actual Zephyr test link type used in your instance.

Let me know if it worked! 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events