Forums

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

Query for Tickets with the field "Test Repository Path" not set (Orphans) in Xray

Flummiboy
Contributor
March 1, 2023

Hi,

I want to query for issues of type Test which do not have a Test Repository Path. When not setting a path on creation the issue will automatically put into the "Orphans" path. I already tried using the function from the XRay documentation like:

issue in testRepositoryFolderTests('KEY','Orphans')

but it did not work. I tried with empty, null and '' instead of Orphans but this did not work either. For Test Sets there is a special function but for the repo. path there is not.
My last attempt was to query with the custom field number, but Jira did not find the custom field.

2 answers

1 accepted

1 vote
Answer accepted
Stefan Salzl
Community Champion
March 3, 2023

Hi @Flummiboy 

it´s kinda awkward and really annoying. That is indeed not working. I kinda got a workaround with the following query:

project = <yourProject> and issue not in testRepositoryFolderTests("<yourProjectKEY>", "")


Hope this solves your problem.

Best
Stefan

Stefan Salzl
Community Champion
March 7, 2023

Hi @Flummiboy 

any feedback on this? could you test the provided solution?

Best
Stefan

Jonamei Basijan
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!
September 19, 2023

hi @Stefan Salzl is there a ways for me to use 

testRepositoryFolderTests

in cloud xray? what I want to do in my JQL query is to search for test cases under s specific folder in test repository.

Stefan Salzl
Community Champion
September 20, 2023

Hi @Jonamei Basijan - welcome to the community,

unfortunately enhanced JQL queries are not available in cloud version (according to documentation):

https://docs.getxray.app/plugins/servlet/mobile?contentId=31623414#content/view/31623414

Best
Stefan

1 vote
Flummiboy
Contributor
March 7, 2023

Yes it did work, thank you a lot!

Suggest an answer

Log in or Sign up to answer