Help with JQL assignee != reporter

Hi there,

I would like to know if it's possible to add in my query a part where it doesn't show the issues where the assignee is equal to the reporter. So, something like this:

assignee was currentUser() AND (status != Closed AND status != Resolved OR (status = Resolved and assignee != reporter)

So, where issues are Resolved AND the Assignee is the same person as the Reporter, I don't want to see those. Most of the time that person isn't current user. Ofcourse I have to see the issues where currenUser IS Assignee and another is Reporter

Ofcourse as declared by JIRA, "The value 'reporter' does not exist for the field 'assignee'." So I don't know how to realise this.

Love to hear from you!

2 answers

1 accepted

Accepted Answer
6 votes

It's not possible without plugins. For example Script Runner has the expression function, which allows you to do:

issuefunction in expression("project = FOO", "assignee != reporter")

The first expression is a filter query which you could leave as en empty string to run "assignee != reporter" on every issue.

Hi Jamie!

Tnx! I have Script Runner and tried your code immediately in the Search and it worked fine.

Superb!!

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

465 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you