Setting Due date for a table extending from task

Suvetha S
Tera Contributor

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

Anand Kumar P
Giga Patron
Giga Patron

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