The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign the ticket back to the previous assignee using post function

Mohamed El Taweel
October 8, 2018

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

 

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Priyanka Lavania
Community Champion
July 19, 2019

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

Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 19, 2019

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. :-)

Alexander Konovalov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2020

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.

0 votes
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 8, 2018

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"

TAGS
AUG Leaders

Atlassian Community Events