Forums

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

Filtering results through nested JQL query with ScriptRunner

Alexander Jancauskas April 30, 2020

Hey there,

in our Jira projects we have tickets of the type Feature and of the type Test. Tests are linked to Features via a "tests / is tested by" link. Now in our CI Pipeline in Bamboo, we want to execute a certain set of Tests which can be characterized like this:

  • All Tests with "status = 'In Use'" that are linked against one or more Features of which at least one has "status = Done"

I want to create this set of Tests as a filter in Jira. We have ScriptRunner installed, so I'm trying to create a nested query for this, but I just can't wrap my head around how to do this.

Can anyone maybe point me in the right direction?

Thank you in advance!

Alex

1 answer

1 accepted

1 vote
Answer accepted
Leonard Chew
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 30, 2020

Hi @Alexander Jancauskas 

Try this

issuetype = Test and status = 'In Use' and issueFunction in linkedIssuesOf('issuetype=feature and status=Done','is tested by')

I hope I got all the values right. 

Alexander Jancauskas April 30, 2020

Works like a charm, thank you so much for taking the effort! I was thinking way too complicated, ha :D

Like Leonard Chew likes this

Suggest an answer

Log in or Sign up to answer