How to add due date 7 days after the current date on RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 02:40 AM
how to populate due date value in "Due date " field which would be 7 days after opened date (current date and time).
time should also populate as per JST 17:30 in due date field .
Please help .
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 06:07 AM
Hi Jyoti,
I had similar requirement and I used below code in workflow run script. It worked out.
Add the below code in your workflow Run Script wherever you need to set the due date field's value.
var openedDate = current.variables.<your opened date field db value> ;
openedDate.addDays(7); //adds 7 days to your opened date
current.variables.<your due date field db value> = openedDate ; //sets the duedate field with opened date + 7 days
Please mark correct / helpful based on an impact.
Regards,
Aishwarya