Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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 Community Leader Jul 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. :-)

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 Community Leader Oct 08, 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"

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

553 views 15 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you