Forums

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

Filtering for Epics which are not duplicates

Martin Härri
Contributor
August 31, 2018

I would like to filter for all epics which are not duplicates, no matter what status they are in. Now when I create this query

project = xyz AND issuetype = Epic and resolution = Duplicate

I get the 1 epic which has been resolved as a duplicate.

However, if I now invert the resolution and search for

project = xyzAND issuetype = Epic and resolution != Duplicate

I get "No issues were found to match your search"

I don't get it... 

1 answer

1 accepted

0 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 14, 2018

Hello Martin,

The Not equals operator (!=) excludes results with empty values, so the query that you have created will return only the issues that have a valid resolution that it's not empty (Unresolved) and is not Duplicate.

This is an intended behavior of JIRA, as you can check in the feature request below:

Not equals operator (!=) excludes results with empty values

Please, feel free to vote in the suggestion if you would like to change this behavior.

For now, you can configure the following query to return ALL Epics that are not with Resolution Duplicated:

project = xyzAND issuetype = Epic and (resolution != Duplicate or resolution is empty)

Martin Härri
Contributor
September 16, 2018

Thanks a lot, Goncalves! I was suspecting that it had something to do with "empty", but did not manage to get the syntax right.

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2018

You're welcome, Härri!

Suggest an answer

Log in or Sign up to answer