Forums

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

Is it a limitation in JQL where i want to search across issue types or lables and status?

Martyn Pope
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 20, 2023

I am trying to pull in a search for Issues type of Story, or Label, with the status of Done.

 

example i am trying to use

issuetype in (Story) OR labels in (Assurance) AND status in (Done)

 

as an add to this can multiples be used in this scenario also 

 

like more than one issuetype, or more than on label. or is this too extreme analytics for Jira queries?

eg

issuetype in (TechDebt, "TechDebt Subtask") OR labels in (tech-debt, tech-debt-to-address, tech-debt-to-withdraw, tech-debt-triage, tech-improvements, tech_debt, techdebt, TECHDEBT, TechDebt) AND status in ("In Progress", "BA in Progress", "Design In progress")

 

Thanks All

1 answer

1 accepted

2 votes
Answer accepted
Kian Stack Mumo Systems
Community Champion
September 20, 2023

@Martyn Pope

No, that JQL should be fine. I think the only thing you want to watch out for is how you structure your JQL.

In the example you shared above:

"issuetype in (TechDebt, "TechDebt Subtask") OR labels in (tech-debt, tech-debt-to-address, tech-debt-to-withdraw, tech-debt-triage, tech-improvements, tech_debt, techdebt, TECHDEBT, TechDebt) AND status in ("In Progress", "BA in Progress", "Design In progress")"

 

The issue which will be returned are: 

 

  1. Any issue type in TechDebt, TechDebt Subtask
  2. Any issue with one of the labels tech-debt, tech-debt-to-address, tech-debt-to-withdraw, tech-debt-triage, tech-improvements, tech_debt, techdebt, TECHDEBT, TechDebt that is also in the status of "In Progress", "BA in Progress", "Design In progress".

The status condition you have is not being applied to the very first portion of your JQL, so if you want it to, you need to change your JQL like so:

(issuetype in (TechDebt, "TechDebt Subtask") OR labels in (tech-debt, tech-debt-to-address, tech-debt-to-withdraw, tech-debt-triage, tech-improvements, tech_debt, techdebt, TECHDEBT, TechDebt)) AND status in ("In Progress", "BA in Progress", "Design In progress")

Martyn Pope
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 20, 2023

Brilliant thank you so much that has worked a treat!

Like Kian Stack Mumo Systems likes this
Kian Stack Mumo Systems
Community Champion
September 20, 2023

Glad to hear it!

Suggest an answer

Log in or Sign up to answer