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
Published in Jira

Introducing new features for Jira Software Cloud's roadmap

Hi Atlassian community, A few months ago, we offered a sneak peak of the new hierarchy view on the roadmap. Thank you for all the feedback (and excitement) and for helping us shape the direction of...

24,917 views 116 85
Read article

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