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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.