Forums

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

Assign issue to last user who executed a certain transition in the workflow

Mohan Sundar
Contributor
March 30, 2020

Hi All,

I have the below workflow. I have a requirement that I need to fetch the user who performs "In Progress" Transition (or) the assignee when in In Progress status 

I need that user as the assignee when the issue is moved to Closed status.

 

This can be achieved as post function but the challenge is there are other users who will be the assignee of Verification Done and Ready for Review status. How do we fetch the previous to previous assignee?

 

Or Technically how to

Assign issue to last user who executed a certain transition in the workflow

 

I have scriptrunner but even the post function "Assign the issue to the last role member" will not meet my requirement. 

Please suggest me your ideas. Thanks in advance.

 

image.png

2 answers

1 accepted

0 votes
Answer accepted
Parvaneh Zand
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.
March 30, 2020

Hi @Mohan Sundar ,

You can copy the assignee of "In Progress" to a custom field, then assign issue to that field wherever you want.

Add a user picker custom field to your project.

Add a post function to In Progress transition, which copies the assignee to the new field (You'll need to have JMWE add-on, or JSU)

Now you are able to assign issue to that user-field using workflow post function.

Mohan Sundar
Contributor
March 30, 2020

@Parvaneh Zand  Many thanks for the reply. This is what my thoughts exactly and wanted to implement this as the final option. But meanwhile I was looking if there is any straight forward way on achieving this. 

May be some groovy code to fetch the assignee in a transition would be great.

May be Atlassian should consider this as a Feature Request :( 

Thanks for the quick assistance :) 

 

 

Regards,

Mohan Sundar J

Like Parvaneh Zand likes this
0 votes
Thorsten Letschert _Decadis AG_
Atlassian Partner
March 30, 2020

Hi @Mohan Sundar ,

if evaluating another app is applicable for you - @Parvaneh Zand already mentioned two - you might want to have a look at Jira Workflow Toolbox.

There even is a documented use case that exactly meets your requirements: Assign issue to last user who executed a certain transition in the workflow.

Cheers
Thorsten

Mohan Sundar
Contributor
March 30, 2020

@Thorsten Letschert _Decadis AG_  Thanks for your reply. I got the headline from that Add-on page only. I do not have that add-on. I have Scriprunner only. Hence buying any other add-on won't be my solution :( Thanks for the swift assistance.

Suggest an answer

Log in or Sign up to answer