Setting Due date for a table extending from task
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 04:33 AM
Hi All,
I want to set the due date as below for all the Health Metrics related remediation staleness task as below. Where it can be configured? Table name : stale_ci_remediation. It is extending the Task table.
- Due Date = Opened + 10 days
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 07:06 AM
Hi @Suvetha S ,
You can write after update and insert business rule on stale_ci_remediation and to update due date use below code.
var opened = new GlideDateTime(current.opened_at);
opened.addDays(10);
current.due_date = opened;
Please mark it as solution proposed and helpful if it works for you.
Thanks,
Anand