I need to change the assignee when transitioning through the workflow. But if the review of the doc in each part of the workflow was to fail, I need to assign it back to the person who last reviewed/changed it. I know using a post-function I can change the assignee as it moves forward but if it moves backward then how do I assign the issue back to the last person who had it. I do not want to assign to the Reporter who was the person who originally created it.
You could do this by:
That sounds good but looks like you would have to use something like Script Runner to make it happen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do it with the Jira Misc Workflow Extensions addon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't even need a new custom field for this (Yay! Clean instance!). With a groovy script in ScriptRunner / Jira Misc Workflow Extensions or the expression parser (a function called previousValue() or fieldHistory()) in Jira Workflow Toolbox you can access historic values of a field. I would prefer that as long as you can make sure assigning issues only happens for a reason and a controlled manner. Then it's pretty easy. :)
Best, Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also use JMCF's "Transition Author" custom field type to automatically capture the last author of a transition (such as "Review"), and then copy from that field to the Assignee field when you want to reassign to the last reviewer. The advantage is that this field will work on existing issues, unlike if you create a normal field and fill it during the transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Edit: Forget what I wrote. That went horribly wrong. :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Decided to go with using Jira Misc Workflow Extensions, have it working now. Thanks for all the good ideas. I also added script runner encase I need it later.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.