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 vote

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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

93 views 0 1
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