Change the assignee to the next evaluator

Use case

Change the assignee of an issue after the evaluator has approved the issue to the next evaluator specified in an User Picker (multiple users) custom field.

🗒️ Prerequisites

Set up custom fields

  1. Create a User Picker (multiple users) text custom field
    Name: Evaluators

  2. Create another User Picker (multiple users) custom field
    Name: Approvers

⚒️ Configuration

Add the Update or copy field values post function to the desired transition or create a new transition.

Target issue*

Choose Current issue

Fields*

First field

Field*

Choose Approvers

Value*

Set field value manually (parser expression)

Expression*

Set it to Basic text and use the following expression

+ %{system.currentUser}

Second field

Field*

Choose Assignee

Value*

Set field value manually (parser expression)

Expression*

Set it to Advanced and use the following expression

first(toStringList(%{issue.cfEvaluators}) EXCEPT toStringList(%{issue.cfApprovers}))

Please. do not forget to replace %{issue.cfEvaluators} and %{issue.cfValidators} with the corresponding field codes of the Evaluators and Approvers fields.


📚 Related use cases