How to write a JQL for Team NOT equal to

Hi All,

I am trying to write a JQL with the Team not equal to, but I haven't been successful and the JQL is not returning anything.

Not successful

Team not in 87

OR

Team != 87 

but I am able to query as follows 

Successful Queries

Team = 87

OR

Team in (87) 

What I am missing?  

2 answers

0 votes

The values for that field also include the possibility that the issue in Jira is NULL for that field.  This commonly happens anytime that specific field has no value at all yet.   In those cases the issue isn't actually returned by a query of

 

Team != 87

 

Instead you will likely need to include an additional query to look for issues that might have a NULL value (empty value) for that field, such as with:

 

(Team != 87 OR Team is EMPTY)

This should return both issues with any other value for that field and issues without any value for that field.

 

This did not resolve the problem, not sure what is wrong with JIRA JQL with `Team` param.

Are you using the Portfolio of Jira add-on?  If so, that app for Jira will create a custom field called "Team".  But by default this field isn't actually used the same way as other fields in Jira Core/ Jira Software.  

If you want to make this field display in Jira Software, then I'd recommend following the steps in Showing Portfolio custom fields in Jira Software.

I have encountered the same problem and realized that the fieldname "Team" is somehow referring to 2 fields.

Bildschirmfoto von »2017-12-13 14-19-54«.png

If you use the autocompletion and then write e.g. 

 

cf[10011] not in ("87")

it might work!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot