Forums

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

write a filter that excludes a key value

fbicknel
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 22, 2019

When I look at a list of issues, the column `Key` appears to indicate the project + a sequential number:

Key

FOO-23

BAR-42

 

I want to write a filter that will show me my issues, excluding a particular project (key value):

 

assignee = currentUser() AND resolution = Unresolved and key != "FOO-*" order by updated DESC

 

That's my guess, but I get:

 

The issue key 'FOO-*' for field 'key' is invalid.

 

Suggestions?

1 answer

1 accepted

1 vote
Answer accepted
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.
April 22, 2019

The key of an issue is <project>-<sequence>, but you can't use wildcards to search it.

However, as your query is about project, yes you can do this, just not with the issue key field.  Try:

assignee = currentUser() and resolution is empty and project not in (FOO, x, y, z) order by updated desc

I've been a little flexible with "project not in".  != would work fine for dropping a single project, but "not in ()" lets you name several projects to exclude.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events