Pro - Reassign issue if not back tomorrow

Pro - Reassign issue if not back tomorrow

Automations can factor in return dates. This example shows the following rule: If a user is still out of the office for more than one day at the time of issue assignment, 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 status the following steps can be added.

Create a variable “oooEndDate” to store the “endDateTime” from the data object.

Variable Name:

oooEndDate

Smart Value:

{{issue.Out-of-office status (assignee).endDateTime}}
Bildschirmfoto 2025-04-01 um 16.34.19.png

Check if the “oooEndDate” is empty OR the date difference is bigger than 1

The two conditions need to be OR connected

First smart value condition block:

First value:

{{now.diff(oooEndDate.toDate).days}}

Condition:

Equals

Second value:

Empty
Second smart value condition block

First value:

{{now.diff(oooEndDate.toDate).days}}

Condition:

Greater than

Second value:

1
Bildschirmfoto 2025-04-01 um 16.34.45.png

Temporarily store the current assignee display name in a variable “oooassignee“

Variable Name:

oooassignee

Smart Value:

{{assignee.displayName}}
Bildschirmfoto 2025-04-01 um 16.35.04.png

Assign a specific user or a user from a group

Bildschirmfoto 2025-04-01 um 16.35.43.png

Re-fetch the data of the issue

This step is needed to get the new assignee from the previous step

Add a comment to inform the new assignee

Comment:

Hello [~accountid:{{issue.assignee}}] This issue has been assigned to you because the previous assignee {{oooassignee}} was out-of-office.
Bildschirmfoto 2025-04-01 um 16.36.07.png