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 vote

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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

488 views 2 5
Read article

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