How to add due date 7 days after the current date on RITM

Jyoti Gaikwad1
Kilo Contributor

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.

5 REPLIES 5

Aishwarya25
Kilo Contributor

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