Advanced - Reassign and notify
If a user is out-of-office when an issue is assigned, the issue can be reassigned to a specific user or to a user in a group. The new assignee will be notified of the reason via a comment on the issue.
Configuration of the rule
Create the rule
The rule itself is based on the example Basic - Unassign an out-of-office user. So after checking the users out-of-office state the following steps can be added.
Create a variable “oooassignee” and store the current users display name with it
Variable name:
oooassignee
Smart value:
{{assignee.displayName}}
Assign the the issue to another user
The issue itself can now be assigned to another user by selecting a user specifically or assigning it to a user of a group.
Refetch issue data
In order to get the new assignee, after the previous step we need to reload the issue data using the Re-fetch action.
Add a comment to inform the new assignee
To inform the new assignee about the reason of the issue assignment add a “Comment on issue” action.
Comment:
Hello [~accountid:{{issue.assignee}}],
this issue has been assigned to you because the previous assignee {{oooassignee}} was out-of-office.
, multiple selections available,