Assignee.oldValue returning nothing in custom workflow

Hi All,

I'm creating a custom workflow in which i want to change the current Assignee to the previous Assignee when the state is changed to a specific value. I tried to use Assignee.oldValue however this changes the Assignee to Unassigned and using code "message(Assignee.oldValue.fullname);" will show a blank message when the state is changed.

The issue I'm testing this custom workflow on shows in the history that Assignee has changed from Person X to Person Y.

Does the oldValue for Assignee currently work or am I using the field incorrectly?

Regards,
James
1 comment
Comment actions Permalink
Please note that .oldvalue denotes the previous value in the current transaction, e.g. it has to work properly is such case:
rule test 
 
when Assignee.changed { 
  message(Assignee.oldValue.fullName); 
}
prettyPrint();
but this code always shows empty string:
rule test 
 
when State.changed { 
  message(Assignee.oldValue.fullName); 
}
prettyPrint();
0

Please sign in to leave a comment.