Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira filter on all work items except work items with custom field value of xyz

Niels
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!
October 29, 2020

So I'm looking to get a list (filter) of all work items (for example stories and bugs) except work item (bug) with custom field value of 'Xyz'.

Is there any way to do a query like that?

I have ScriptRunner installed.

 

 

3 answers

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2020

shouldn't need SR. try to create a JQL something like this....

project = abc and issuetype != bug or (issuetype = bug and "my custom field" != Xyz)

0 votes
Niels
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!
October 29, 2020

Thanks guys, seems I was thinking too complicated.

0 votes
Nic Brough -Adaptavist-
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.
October 29, 2020

Try

issuetype in (story, bug) and not ( issuetype = bug and my-custom-field = Xyz)

Suggest an answer

Log in or Sign up to answer