Hi,
In HR Project, we have the business requirement that tickets can be reassigned through transition and the new assignee can reject it, so the ticket is to be assigned back to the previous assignee
Example:
In status "InProgress", the assignee "Tom" reassigned the ticket to "Lyna" and the ticket move to "PendingAcceptance"
If "Lyna" pressed the button "Rejected", the ticket should be assigned back to the previous assignee "Tom" using scriptrunner and post function.
Thnaks
This can also be done using Assign to last role member in script runner post function, you will not be required to store value in any field
That's a handy function that could work in some cases, but unfortunately not ours, in that we have users in multiple roles that could have been the previous assignee. Perhaps it'll work for the OP, though. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's astonishing that you managed to give the same answer in at least three different topics related to restoring the previous assignee, not the first ore last one in any given project role, albeit having worked with the issue. The roles aren't always used in exact correlation with the status model of an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One option that I've used in a similar situation is to use a custom field to hold the previous assignee, i.e.
Tom > Reassign to Lyna - set "previousAssignee" to Tom
Lyna > Reject - set "assignee" to value in "previousAssignee"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.