Jql query for assignee or reporter as current user and status not closed - jira

The query below listing closed status as well.
assignee = currentUser() OR reporter = currentUser() AND status not in (Closed , resolved) order by updated DESC
When reporter = currentUser() is removed, Closed status list is not seen. How to see the results only for non-closed or unresolved statuses user currentUser category for assignee and reporter?

You are almost there, I think you just need parentheses that is covering "OR" condition:
(assignee = currentUser() OR reporter = currentUser()) AND status not in (Closed , resolved) order by updated DESC

Related

Filter stories based on status but include all their subtasks

I want to select all Stories which are not in the status "Backlog".
Those should be selected and for all of them I want to get the complete list of all subtasks they have.
project = "Android Appli" AND issuetype in (Story, Sub-task) AND status != Backlog
Would can't handle to say something like Story.status != Backlog
On my thouhgts was to do something like a combined selection
issuetype in (Story, Sub-task) FROM (project = "Android Appli" AND issuetype = Story AND status != Backlog)
Probably this is not possible with out-of-the-box JQL functions in Jira.
You may need to have an extension (add-on/app) installed on the Jira, like ScriptRunner or JQL Tricks.
Try something like this:
project = "Android Appli" AND (
issuetype = Story AND status != Backlog OR
issueFunction in subtasksOf("issuetype = Story AND status != Backlog")
)
Please note that issueFunction is special field related to paid ScriptRunner add-on.
You might have JQL Tricks installed instead.
See also more information in my related answer:
https://stackoverflow.com/a/57898057/1572749

Show Due dates for linked issues in Jira

I want to make a Confluence page which tracks my jira tickets and the issues that are linked to those tickets.
Till now I have done this:
project= ABC AND "Epic Link"= 'Epic1' AND status != 'closed'
I want to create a table that has Jira- key, summary, tasks, due date, status and linked issues.
I want to make sure that I show linked issues that are only linked to the current epic (that is Epic1) and also show the due dates of these issues.
I have tired doing this:-
project= ABC AND "Epic Link"= 'Epic1' AND status != 'closed' AND issuefunction in linkedIssuesOf(" "Epic Link" = Epic1 ")
but it doesn't seem to understand this issueFunction in or issue in
Can someone please help me out
Try using the following-
project = ABC AND "Epic Link" = Epic1 and issue in childIssuesOf("Epic1")

How to exclude the results from few filters

I have a few filters. Now I have to find other issues that are not included in this filter. I try the following JQL request
project = "Management" AND issuetype = Test AND status not in (closed) AND issue not in linkedIssuesInFilter(29971, 29875)
But as I understand I can't set few filter IDs in the brackets
Found solution
project = "Management" AND issuetype = Test AND status not in (closed) AND filter not in (29971, 29973, 29975, 29977, 29979, 29990)
You can keep chaining with another AND. Also, you can write status != closed if you are only checking against one status, but your version works as well.
project = "Management" AND issuetype = Test AND status != closed AND issue not in linkedIssuesInFilter("29971") AND issue not in linkedIssuesInFilter("29875")

How to return number of opened ticket type bug

Is their any function in Jira using JQL to return a number of opened ticket and issue type Bug?
labels = ABCD AND Type!= Bug AND status !="In Progress"
Try this JQL
Project = "Project name" AND labels = ABCD AND Type= Bug AND status ="In Progress"
Query Result = Number of Bugs which are in status "In Progress"
Note: Status "in-Progress" and "To-Do" can mean that the issue is in Open state.
The definition of Status is completely project specific and can be controlled by the Jira Admin. (general status - To do, In-progress and done)

JIRA JQL - Find all subtasks that are in X status, where the parent is in X status

I'm having an issue where I can't see the status of the parent task, and can only see the status of the sub-task. I would like to find all sub-tasks that are in a certain 'status' where the parent of that sub-task is (or is NOT) in a certain 'status.' Is this possible?
i.e. I would like to find all sub-tasks that are currently in the status "Assigned", where the parent of the sub-tasks is NOT in the status "In Development"
I have tried to Google the problem, as well as check through SF, but did not find anything. The only similar question that I found was "JIRA JQL - Find all subtasks that are open where the parent is closed" which was answered by #g.dlugoszewski:
type = sub-task and status = Open and issueFunction in subtasksOf("status = closed")
Yes, I'd use the Script Runner add-on with its custom JQL functions such as the one you quoted. Perhaps like this
type = sub-task and status = Assigned and issueFunction in subtasksOf("status != \"In Development\"")
Try something like this:
status = "To Do" AND type = sub-task AND issueFunction in subtasksOf("status = 'In Progress'")
In this case the status = "To Do" for sub-tasks and 'In Progress' for parent tasks. Change for what status you want.
Referencing a saved filter might help you, e.g. status = X and filter != "My Saved Filter"

Resources