Stop progress if reassigned with Script Runner

I have a specific workflow that I'm trying to get set up. One of the things I'd like to do is execute a transition - the end result to be reset the state to 'open' - if an issue is reassigned. 

I have Script Runner up and working and a listener set up with a fast track transition.

If the assignee changes it does indeed try to run. The issue is that it only works if a user assigns something to themselves, not if they assign it from themselves to another user.

Looking at the permissions on my transition only the current assignee has rights to execute the transition. I'm guessing that this is running in the context of the new assignee and therefore doesn't have the necessary rights. 

How do I get this working? 

3 answers

0 votes

Is there a condition on the action that goes to Open, like "only assignee" or something? Your question seems to imply there is. To test your theory can you temporarily remove that condition?

@Jamie Echlin [Adaptavist] indeed there was - 'only assignee' could 'stop progress' on a given task. I removed that limitation but the issue persists. Is there a log, etc I should attach?

0 votes

What versions are in play here? Yes, definitely tail the application log, if it can't transition it should report why not (in the latest version).

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot