Ayusman
Ayusman

Reputation: 8729

Find Jira issues that I assigned to someone else

Is there a way I can use JQL to find all Jira issues, that I assigned to someone else?

I see the assignee field, but I want to find a JQL, where I assigned a Jira issue to someone else other than me.

Upvotes: 1

Views: 1612

Answers (2)

Tom Gionfriddo
Tom Gionfriddo

Reputation: 430

The CHANGED BY operator is what you are looking for.

Assignee CHANGED BY currentUser() will return any issue the current user has ever assigned to anyone, including themselves. This gets a bit tricky, as you want to only show issues which you have assigned to anyone other than yourself.

If you have never been the assignee of the issues, then simply adding Assignee WAS NOT currentUser() will return all issues which you have assigned to someone. However if you have ever been assigned to the issues, then they will not be returned.

I had a long think about this and couldn't come up with a perfect solution for if you had ever been assigned to the issues, just some crude approximations which had many exceptions. I suggest taking a look at the JQL Advanced Search Reference and playing around with it to see what works for you.

Upvotes: 3

CraZ
CraZ

Reputation: 1834

It's simple. Use the not-equal sign != instead of equal sign =.

assignee != currentUser()

or

assignee != currentUser() OR assignee is EMPTY (to include also unassigned issues)

Upvotes: 0

Related Questions