Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Variable Name:

Code Block
oooEndDate

Smart Value:

Code Block
{{issue.Out-of-office status (assignee).endDateTime}}

...

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:

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

Condition:

Equals

Second value:

Code Block
Empty
Second smart value condition block

First value:

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

Condition:

Greater than

Second value:

Code Block
1

...

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

Variable Name:

Code Block
oooassignee

Smart Value:

Code Block
{{assignee.displayName}} 

...

Assign a specific user or a user from a group

...

Add a comment to inform the new assignee

Comment:

Code Block
Hello [~accountid:{{issue.assignee}}] 
This issue has been assigned to you because the previous assignee {{oooassignee}} was out-of-office.

...