Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple search constraints

Kalpesh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 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

1 vote
Tuncay Senturk _Snapbytes_
Community Champion
September 15, 2019

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
TAGS
AUG Leaders

Atlassian Community Events