Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

A JQL query isn't working as expected.

John M
Contributor
April 5, 2021 edited

I need to filter all issues resolved last month for which the current user is either an Assignee, a Contributor, or a Writer. I wrote the query below:

(assignee = currentUser() OR "Contributors[User Picker (multiple users)]" in (currentUser()) OR "Writer[People]" in (currentUser())) AND resolutiondate >= startOfMonth(-1) AND resolutiondate < startOfMonth() ORDER BY issuetype ASC

 

The trouble is that the list only shows issues assigned to me.

 

I tested this as follows: 

  1. I went to an issue that was both assigned to me and had me as one of the Contributors.
  2. I removed the assignee.
  3. I went back to the filter page and refreshed it.
  4. The issue was gone from the list.

 

2021-04-05_13-48-10.png

1 answer

0 votes
Alexander Pappert
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.
April 5, 2021

sometimes I have some buggy jql searches with OR

can you try the following:

assignee AND resolution OR contibutor AND resoultion OR writer AND resoultion

John M
Contributor
May 4, 2021 edited

Hey @Alexander Pappert, I tried this and the results are the same. ¯\_(ツ)_/¯ 

Suggest an answer

Log in or Sign up to answer