---
sourceDocument: Zurich IT Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/zurich/it-service-management

 Release :

    - zurich

ft:locale :

    - en-US

ft:publication_title :

    - Zurich IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Configure the due date logic for shift approval flows

# Configure the due date logic for shift approval flows {#ariaid-title1}

Release version: Zurich  
Updated July 31, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read  
As an administrator, you can configure the due date logic for the time-off request
and shift-swap request approval flows.

## Before you begin

Make sure that your application is in the Shift Planning scope.

Role required: admin

## About this task

You can configure the flows to restrict who can approve the requests. For example,
you can set it to only the manager of the agent's primary assignment group who can
approve them. If the agent submits the request for approval within two days before
the agent time-off start date, then the request for approval is auto-rejected.

## Procedure

1. Navigate to AllProcess AutomationFlow Designer.  
   Each flow has a requester and an approver workflow.
2. Configure the due date logic for the Time-off request flow.  
   {#configure-time-off-shift-swap-approval-flows__table_phs_ffg_4tb__entry__3}

   | If | Then | Reference image |
   |-|-|-|
   | The requester is one of the managers | The request is auto-approved. |   |
   | The requester is the agent | Enter the due date to approve the request. 1. Open ElseAsk For Approval flow. 2. In the Due Date field, select the down arrow icon (![Down arrow icon]()). 3. In the Due Date script window, update the value in the dueDate.addDaysUTC(-2); parameter to the number of days you want to set the due date for approval. 4. Select Done. {#configure-time-off-shift-swap-approval-flows__ol_dkp_jfg_4tb} |   |
   [ ]

   {#configure-time-off-shift-swap-approval-flows__table_phs_ffg_4tb}
3. Configure the due date for the Swap request approval flow.  
   {#configure-time-off-shift-swap-approval-flows__table_ek2_lfg_4tb__entry__3}

   | If | Then | Reference image |
   |-|-|-|
   | The shift-swap requester is one of the managers | The request is auto-approved. |   |
   | The shift-swap requester is an agent (Requestee) and the The shift-swap approver is the manager | Enter the due date for the requestee agent to approve. 1. Open ElseAsk For Approval- Ask for Approval from Requestee Agent flow. 2. In the Due Date field, select the down arrow icon (![Down arrow icon]()). 3. In the Due Date script window, updated the value in the dueDate.addDaysUTC(-2); parameter to the number of days you want to set the due date for approval. 4. Select Done. {#configure-time-off-shift-swap-approval-flows__ol_hyf_cgg_4tb} Enter the due date to approve the request. 1. Open Ask For Approval - Ask for an approval from Managers and additional managers of both the agents flow. 2. In the Due Date field, select the down arrow icon (![Down arrow icon]()). 3. In the Due Date script window, updated the value in the dueDate.addDaysUTC(-2); parameter to the number of days you want to set the due date for approval. 4. Select Done. {#configure-time-off-shift-swap-approval-flows__ol_fk2_lfg_4tb} | Enter the due date for the requestee agent to approve. Enter the due date to approve the request. |
   [ ]

   {#configure-time-off-shift-swap-approval-flows__table_ek2_lfg_4tb}
**Related topics**   

* [Build your first flow in Flow Designer](https://www.servicenow.com/docs/access?context=build-your-first-flow&version=zurich&pubname=zurich-build-workflows&ft:locale=en-US)

*[\>]: and then


