I'm trying to write a JQL filter for a Kanban board that includes only issues that have a certain Priority assigned, but only for one Issue Type in the project. What's the best way to do that?
Community moderators have prevented the ability to post new answers.
Welcome to the Atlassian Community!
A JQL quick filter like this should do the trick:
!(Priority is empty and issuetype = bug)
Thanks, Nic! I think I wrote my initial question a bit wrong. I want to keep all the issuetypes, but only include issues in one issuetype that have a certain priority assigned (we don't use the Empty state for priority, we have one called "Unassigned"). I tried your suggestion but it excluded all the other issue types from the query.
It's part of a larger query so I added it on like this:
!(project = [xyz] AND (assignee != [xyz] or assignee is EMPTY) AND "Resolution Estimate[Date]" is EMPTY) AND (fixVersion in unreleasedVersions() OR fixVersion is EMPTY) AND (priority = Unassigned AND issuetype = "Prod Defect")
Any ideas? Thank you!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No problem, that clause you've added there will throw out all of the other issue types because there is "and issuetype = Prod Defect" in it.
Try replacing
(priority = Unassigned AND issuetype = "Prod Defect")
with
( (priority = Unassigned AND issuetype = "Prod Defect") OR issuetype != "Prod Defect")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That worked, thank you so much!! I know this is a pretty basic question but I'm fairly new to JQL. Appreciate your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.