Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JQL Scripted Function to check if assignee = reporter?

Brent Webster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2013

JQL query: "assignee = reporter" does not exist out of the box and of the questions asked about it in this forum, the answer is usually to buy the JQL Tricks plugin. Various Script Runner functionality has saved me from many Jira inadequacies but I'm getting fed up plugging the holes in dam here.

I'm hoping someone has written a JQL Scripted Function for this simple query.

Anyone?????? Or any other solution

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2013

What should work is:

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

(You can use the first param to provide a jql query that will restrict the issues that will be checked).

but I seem to have explicity prevented using those fields in the expression function, but I can't remember why.

I've changed the code and it seems to work fine - if you watch https://jamieechlin.atlassian.net/browse/GRV-310 you will get notified when it's released.

Brent Webster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2013

Thanks Jamie, as of 2.1.11 ScriptRunner performs excellently-- super job!!!

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2013

Great, thanks for letting me know.

David Jansson February 23, 2015

Hi would it be possible to filter on issueFunction in expression("", "creator != reporter") to find issues where users have changed reporter?

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2015

No it's not exposed, but it would be good if it was so I created: https://jamieechlin.atlassian.net/browse/GRV-642

David Jansson February 25, 2015

Thanks, Will be looking forward to upcoming releases. Keep up the great job!

1 vote
Henning Tietgens
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2013

I'm not into scripted JQL (yet :-)) but another idea is to create a Script Runner scripted field which checks if issue.reporter == issue.assignee and return 0 or 1. This scripted field could be checked in JQL...

Brent Webster
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2013

That's a possibility but I'm already working on another scripted field issue which you have commented on (i.e. https://answers.atlassian.com/questions/198927/scriptrunner-s-scripted-field-not-showing-up-in-issue-navigator). Not having much luck with scripted fields yet but I'm hopeful.

TAGS
AUG Leaders

Atlassian Community Events