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

This widget could not be displayed.

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?

This widget could not be displayed.

@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?

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

203 views 1 3
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