Jira workflow


We have to make a jirta workflow.In the requirements it states the below:-

1.Need to have a "assign-back" transition button visible to the assigned user.

2.If a user "x" assigns a task to "y",then "y" should be able to click this back button and auto assign it back to the previous user.

However this user wouldnt belong to a special group or something that we can use to assign.Please let me know if anyone has any ideas.

2 answers

1 accepted

0 votes
Accepted answer

This can be achieved by using the Assign to last role member function on Jira Misc Workflow extension plugin.

Also have a look at this documentation for details



Even after doing this i see the same options in the post func of a transition in a workflow.It hasnt got the assign to last user as stated even in the document

This worked

I would say, this can be achieved even without any plugin. Please follow the below steps;

1. Add a custom field ( user picker), say ‘Pre User’. No need to add this field in to any screens.

2. Edit your workflow transition ( ‘assign back’) , go to the workflow post function of this step

3. Click on Add a post function and select ‘Copy Value From Field to Field’ post function. In the next window, choose values so that the source field will be ‘assignee’ and destination field will be ‘Pre User’. Make sure that you check the field ‘Use value before current transition’ in this window.

4. Now you have kept the previous username in the custom field ‘Pre user’.

5. Similarly, edit the transition ‘ Return’ ( or whatever you added for the user Y to move it back to the last user) and add a similar post function. This time you select ‘Prev User’ as source and ‘Assignee’ as destination field.

Hope this is clear.


Thanks guys.Issue is i am using ver 5.2.4 and even updated the plugin as said above.

I dont get an option to assign to last user in the post function of the workflow.I hope i am clear to you.

I don't think that the above mentioned plugin has 'assign to last user' post funtion. But it has 'assign to last user in project role' option. Still I recommend my suggestion as I have implemented similar workflow transition in our JIRA.

The thing is i have a transition "assign-back".i want to add in the post function a condition that states that when a user clicks this button the task would get assigned back to the user who assigned it to him.however in the post func i see options like ASSIGN TO REPORTED,CURRENT USER ETC.none gives the option to assign to the former user.

Also i am unable to understand your first comment.Could you please elaborate

Okay.. edited the above comment.

Great !!!. I am aware of that module. But which is more role specific.

So it may fail in some situations. Not sure about how you have configured project roles. In my case it didn't work. :)

Dear Vishnu,

Thanks a lot.Also i found that we could inface do it the way suggested by rahul.The issue was one of the modules in the plugin was disabled and hence i wasnt getting this option.Now its fine.Thanks a lot for your help.

Happy to know that it worked :)

However this worked for me vishnu.

Also there was a requirement that this button shouldnt be seen bythe user who is the part of the workflow.Fixed that using a script post function.Worked like a charm.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,091 views 4 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you