Jira Automation - Assign an Issue to Previous Assignee on Transition

Umer Saeed July 20, 2022

Hi everyone,

I've read several topics on this and noticed that Jira Automation used to have an option called: Previous Assignee under the "Assign Issue" action dropdown. I think Jira has evolved since but this option is no longer there. Another thread mentions I can use Smart Value called {{previous.assignee}} - but this doesn't work too.

My workflow:

To Do | In Progress | Code Review | Functional Review | Done

 

When a ticket moves from To Do > In Progress, I have a rule to auto assign it to the user who performed the action. 

But when a ticket is in the other columns, like Code Review, another developer assigns it to themselves, and  if changes are needed, they will move the ticket back to "In Progress" and I want Jira automation to automatically re-assign it to the previous assignee, because the other developer might forget to do that.

 

How can I achieve this?

 

Thanks

 

3 answers

1 accepted

10 votes
Answer accepted
Alexis Robert
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 20, 2022

Hi @Umer Saeed , 

 

you can do this very easily with Automation for Jira : when using the "Assign issue" action, you can choose "Assign to previous assignee" as you can see in below screenshot.

 

Screenshot 2022-07-20 at 14.19.23.png

 

You will just need to define the conditions for your status when the rule should be triggered.

 

Let me know if this helps, 

 

--Alexis

Harish Gunturu September 6, 2023

Thanks Alexis! worked like a charm.

hamidreza December 19, 2023

 i do that command but it didn't work

tnx for help me

0 votes
Tijs Tijert
Contributor
March 29, 2024

assign-issue.jpgHello!

I have a similar question but slightly different.
I have a workflow with several steps and transitions, in which there are three levels of assignees:
- Initial Assignee
- Technical validator
- Final Validator

The transistions towards technical validator and final validator have automated assigning based on username and pose no problem.

But since the initial assignee can be one of many users I want to auto assign to "initial assignee" when transistioning a task back to one of the initial steps.

I might be able to work with "previous assignee" if I am carefull but in my project that option is also unavailable. Does it still exist?

Any additional info I need to provide?

Pascal Amelii June 21, 2024

I'm having the exact same issue, i have a simple workflow where i would like to reassign a ticket to the previous owner but the option is not available. Did you manage to find any solution for this issue? I mean, it's a pretty common need,  i'm actually surprised this is not in the default action list!

Tijs Tijert
Contributor
June 21, 2024

No I didn't. I couldn't find a solution, so I posted here, but since you are the first to react and you also don't have a solution for me, we're still in the same boat.
:-)

Boluwatife Adewole September 25, 2024

hi @Tijs Tijert the solution given above works for previous assignee. Here is the workflow again.

Screenshot 2024-09-25 100158.png

0 votes
Umer Saeed July 20, 2022

Hi Alexis

 

Oops, so sorry, I completely missed the "Another field value" pre-selection.

Got it now!

 

Thanks!

Suggest an answer

Log in or Sign up to answer