It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Multiple search constraints

Kalpesh I'm New Here Sep 15, 2019

I am trying to retrieve the count of issues in a project which are bugs and whose status has been closed or resolved and resolution fixed. Along with that I am trying to make sure the assignee of the bug is not same as the reporter or the assignee is not unassigned.

This is what I have so far:

https://issues.apache.org/jira/rest/api/2/search?jql=issuetype=Bug and resolution=Fixed and status= Resolved or status = Closed and project=AMQ and assignee!=reporter and assignee != ''

 

However, the total count returned is more than the actual count of bugs present in the project repository. Please assist.

1 answer

Hi @Kalpesh 

It's only possible with plugins. You can't use functions such as reporter, assignee on the right side of the equation.

However, if you're using Script Runner, you can achieve this using issuefunction JQL function

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

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_expression

Hope it helps

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

303 views 1 3
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you