Forums

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

How to write a JQL for Team NOT equal to

Jibran
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!
September 21, 2017

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?  

3 answers

1 accepted

1 vote
Answer accepted
Raguram
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!
December 10, 2018

Try Team not in (87) or Team is not EMPTY

2 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 22, 2017

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.

Jibran
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!
September 23, 2017

 

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

Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 25, 2017

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.

Nathan George September 20, 2019

thanks this helped with issueLinkType in ("is blocked by")

0 votes
Deleted user December 13, 2017

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
TAGS
AUG Leaders

Atlassian Community Events