Forums

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

JQL to Find Issues for "Not Available" Teams

Steve Goodwin June 11, 2025

Hi,

A team was deleted from Jira, while still being populated in the Team field for some issues. I noticed that in filter results the Team field is now showing "Not Available." The Team field apparently still retains the deleted team's ID.

Is there a way in JQL to filter for issues where the Team field is populated with a no-longer-valid team ID?

(Note: the Team field isn't empty, so "Team[Team]" is Empty isn't an option)

2 answers

1 accepted

0 votes
Answer accepted
Vronik
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.
June 11, 2025

Hi

It's certainly not the best solution, but if you know the ID of the deleted team, you can add


"where team <> ID No." to the query.

Regards

0 votes
Steve Goodwin June 13, 2025

Thanks, @VronikThat would certainly work for a one-off situation where the ID was known.

I was really looking for a generic solution for all invalid IDs, sort of like the inactiveUser() function that can be used for people fields.

I've created a Jira feature suggestion for a JQL function to return invalid Team IDs

Thanks again, @Vronik 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events