Hello @Thomas N_ ,
Good day! Welcome to Atlassian community :)
You can use the following JQL query:
(status in (Done) AND (assignee = currentUser() OR watcher = currentUser()))
Thank you!
Dear @Thomas N_
The brackets in @Shalini Pradhan 's answer are crucial in finding the correct Jira work items. Please verify her solution by copying it into the filter you're using.
Kind regards,
Dick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so far!
I still verified in that way:
status = Done AND assignee = currentUser() OR watcher = currentUser()
But I still get my open tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Thomas N_ ,
Good day! Please make sure to use all the brackets mentioned in the filter query.
Thankyou!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Thomas N_
Please note the differences:
Correct is: (status in (Done) AND (assignee = currentUser() OR watcher = currentUser()))
FALSE is: status = Done AND assignee = currentUser() OR watcher = currentUser()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That would mean that there are no tickets that pass your prerequisites.
Try watching a ticket, put it in status done and run the query again, you should find that ticket.
Kind regards,
Dick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The brackets in Shalini's solution influence the order in which the conditions are being processed.
Your query is processed like this:
Select these tickets: Tickets that are both done and mine, and include all tickets that I watch. This results in area B, E, together with D, E, F, G.
So it spans: B, D, E, F, G.
Shalini's query is processed like this:
Selected tickets should be in A, B, D, E, AND inside B, C, E, F, D, G.
So this would span: B, D, E.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Additional question:
How to build quere to get more status?
(status in (Done) AND (assignee = currentUser() OR watcher = currentUser()))
For example status "Planned" should be added in above query.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Thomas N_
You can use
(status in (Done, Planned, "Other Status") AND (assignee = currentUser() OR watcher = currentUser()))
Kind regards,
Dick
Oh, and it's accustomed here to mark an answer as "answered", which makes it easier for people with similar questions to find this answer. Thank you in advance...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.