Use issue properties (custom fields values) in a workflow

Hello I have the following task:
I need to change Assignee to logged in user when issue state is changes to In progress. And than when State change to anything else restore the original Assignee.

The main idea is to track time of the different users automatically (developers, pm, testers).
Do you have any recommendations on how to achieve this?

So my problem is how to temporary save the assignee.

I had an idea to create a new field Responsible and when states is change I store an original Assignee in this field. But I can not restore it. Do not know how to access to custom field values
2 comments
Comment actions Permalink
You can use a couple workflows to achieve it:
rule Set assignee 
 
when State.becomes({In Progress}) { 
  Assignee = loggedInUser; 
  Responsible = Assignee; 
}
prettyPrint();
rule Turn back assignee 
 
when State.oldValue == {In Progress} { 
  Assignee = Responsible; 
}
prettyPrint();

Unfortunately access to the issue history in workflow isn't implemented yet - JT-12687.
autoAssignee.zip (2.1KB)
0
Comment actions Permalink
Thanks Dmitry,
it's working.
0

Please sign in to leave a comment.