- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:23 AM - edited 07-26-2024 04:31 AM
Hello,
I am looking option to add Due date & Time for Manager approval task. Anyone can suggest?
I Need two options
1st if manager is not approved in 5days from request date
2nd If manager is not approved in 2hrs from Request date time.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:57 AM
Hi @surajsukuma ,
If you want to add the due date +2 hours from created, try the below script
var created_date = fd_data.trigger.current.sys_created_on;
created_date.addSeconds(7200);
return created_date;
Regards,
Dhanraj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:27 AM
Can you elaborate? You want to add fields or you need logic?
Next to that: what kind of weird request is it to do something within 2 hours related to approval?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:30 AM
I need to add due time for approval task, If 1st Manager is not approved with in 2hr from request creation date, need to go to second level manager. i tried below option didnt work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 04:57 AM
Hi @surajsukuma ,
If you want to add the due date +2 hours from created, try the below script
var created_date = fd_data.trigger.current.sys_created_on;
created_date.addSeconds(7200);
return created_date;
Regards,
Dhanraj.