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 02:55 AM
Hi Jyoti,
are you using JST time zone for opened date also? Go through below thread to populate due date based on open date.
Kindly mark correct and helpful if applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 03:08 AM
yes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 03:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 04:04 AM
Hi,
create a business rule on RITM
when to run : before insert
var opened = current.opened_at;
gs.log("Opened =====" + opened);
var sd = new GlideDateTime(opened);
sd.addDaysLocalTime(7);
var test = sd.toString();
gs.log(test);
current.setValue('u_due_date', test);
or add below line to Dictionary Entry Default value (Configure Dictionary ->default value)for due_date field
javascript: var d = new GlideDateTime(); d.addDaysLocalTime(7); d.getDisplayValue();
Please mark correct / helpful based on an impact.
Regards,
Aniket Sawant.