The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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! 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events