Relative Duration

Amisha Pattojos
Tera Contributor

Hi all,

I have a requirement to write a script on Relative Duration for SLAs where the conditions are -

If 'Start Date' is-

1. Before now plus 2 working days, set SLA breach to now plus 2 working days

2. Between 2 to 20 inclusive working days from now, set SLA breach to 'Start Date.'

3. More than 20 working days from now, set SLA breach to now plus 20 working days

 

Thanks in advance!

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @Amisha Pattojos,
Please refer to the below link's:
https://docs.servicenow.com/bundle/vancouver-application-development/page/script/useful-scripts/task...

https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/time/task/t_Use...

 

Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik