Auto-reassignment to previous assignee within Post Functions

William Chapman October 16, 2013

I have been trying to find an answer for this specific case but I have yet to discover much. I apologize is this has been posted before.

I understand there are a couple of options for assignment of issues based on transitions using post functions. What I am wondering is if there is a way to reassign an issue back to the previous assignee.

For example, in our Ready for Acceptance status we have two options: Accepted and Bug Detected. If Bug Detected is selected, I would like for the item to be reassigned back to the previous assignee as this would be the developer that marked the issue as completed and ready for acceptance.

Is this possible using the current post functions or would this require something special? Or is just not feasible at the moment?

4 answers

1 accepted

4 votes
Answer accepted
Andrey Markelov
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.
October 16, 2013

Also you can try https://marketplace.atlassian.com/plugins/ru.andreymarkelov.atlas.plugins.utils

Use Assign to Workflow Step Actor Post Function

William Chapman October 21, 2013

This is exactly what I needed. Thank you!

Joey Ancheta October 12, 2016

Shucks. This is not available for the cloud version.

Like Jonathan Munoz likes this
2 votes
Jobin Kuruvilla [Adaptavist]
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.
October 16, 2013

You will have to capture the previous assignee somewhere for this to work. You can have a user custom field where it can be captured but if your assignee changes outside of workflows, you will need a listener to do the job.

If the assignee changes only via workflow, you can use a post function to set the current assignee value on a custom field and then use that custom field for re-assignment.

William Chapman October 16, 2013

Awesome. Thank you! I will give this a try.

Ajay Kumar Bheemireddy March 6, 2016

Hi Jobin,

Could you please explain how to capture the previous assignee using custom field? Thanks

Joey Ancheta October 12, 2016

@Jobin Kuruvilla [Go2Group] can you please be descriptive for this JIRA n00b? I"m stuck like Ajay.

Like Mikalai Karol likes this
0 votes
capucinei October 7, 2016

I have a question on this matter. to follow what Jobin suggested, I wanted to track he name of the developper so i created a custom field "Dev assigned" to log the dev name of the person. 

But i don't how to log this name when the person click on a certain status. could you please help me?

 

Cap

0 votes
John Bishop
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.
October 16, 2013

Using the ScriptRunner plugin, you could query Jira's ChangeHistoryManager to see who the last assignee was and then assign the issue back to them.

Anil.Bulle January 21, 2015

Hi JohnBishop, Could you please suggest any query through script runner to achieve this requirement.? Best Regards Anil Bulle

Suggest an answer

Log in or Sign up to answer