On this page
Use case
Set the last assignee in a given status as assignee in a posterior transition.
This use case requires the implementation of two Update or copy field values post functions in two different transitions.
Prerequisites
Configuration
Add the Update or copy field values post function to the transition or transitions that leave the status in question.
Target issue
Choose Current issue
Field
Choose Last Assignee In Status
Value
Choose Set field value manually
Expression
Use the following expression with the expression editor in Advanced text mode.
previousValue(%{issue.assignee})
This expression will be only valid if there changing the assignee is required in this transition.
If it is not required to change the assignee, use the following expression instead.
%{issue.assignee}
Add the Update or copy field values post function to a posterior transition.
Target issue
Choose Current issue
Value
Choose Copy field value from current issue
Field
Select Last Assignee In Status
Conditional execution
Restrict the usage of the post function with the following conditional execution. Replace the field code with the appropriate one for the field Last Assignee In Status before using it.
%{issue.cfLastAssigneeInStatus} != ""
Related use cases
If you still have questions, feel free to refer to our support team.