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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

229 views 1 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