Fast track is not triggered by Issue Assigned event when assignee is edited inline

Olga Sachenko May 20, 2016

We are running JIRA v6.4.5#64020-sha1:78acd6c together with  Script Runner and we need to trigger a scripted action (using a Fast-track transition an issue script listener by Script Runner) relying on the Issue Assigned event.

It works perfect with "Assign" button and "Assign to me" link. But nothing happens when users edit assignee inline. We could not find any exceptions in log files.

Atlassian support says it has nothing to do with JIRA itself not firing an Issu Assign event, but rather how the plugin works. 

Please advise.

1 answer

0 votes
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.
May 20, 2016

You are right... I've created https://productsupport.adaptavist.com/browse/SRJIRA-1929. There is a bit more info there.

In the meantime you could also listen for Issue Updated and check if the assignee has changed, if eventType == 2.

Olga Sachenko May 23, 2016

Jamie, thank you for a suggestion, i will definitely try to implement it. However, for some reason i cannot view the referenced ticket and see the information you refer to.

Olga Sachenko May 23, 2016

Jamie, can you, please help me with the condition syntax for your workaground? What i have in place now is:

 

return( issue.getStatusObject().getName()=="In Progress");

How do I change it to also verify the eventType?

Thank you.

Olga Sachenko June 2, 2016

Jamie, I can not access https://productsupport.adaptavist.com/browse/SRJSUP-420 still. This matter is becoming critical.

Olga Sachenko June 2, 2016

Also condition

return( issue.getStatusObject().getName()=="In Progress" && issue.assignee != originalIssue.assignee

Does not seem to do the trick. Please advise as soon as possible.

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.
June 3, 2016

Sorry, I created the issue in the wrong place. Should be https://productsupport.adaptavist.com/browse/SRJIRA-1929.

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.
June 3, 2016

In the docs it says that construct is for workflow functions only, you want something like:

changeItems.any {
    it.get('field') == 'assignee'
}
Like yewujieyewujie1025 likes this
Olga Sachenko June 5, 2016

Jamie, pardon my ignorance, but I cannot quickly find how to leverage eventType condition, can you, please point me to a code snippet.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events