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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,994
Community Members
 
Community Events
184
Community Groups

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

0 votes
Priyanka Lavania
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jul 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 Leaders.
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
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 Leaders.
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
AUG Leaders

Atlassian Community Events