How can I autoclose problem after 5 days of resolution

akshayjain
Tera Expert

How can I autoclose problem after 5 days of  resolution

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

I recommend setting a system property (my.problem.resolution.days) and using a scheduled job against it to query for active records that are resolved 5 or more days ago. If you want make this easier... Consider doing this without any script with a simple update set add-on that I made specifically for situations like this.

Scriptless scheduled jobs

View solution in original post

10 REPLIES 10

Omkar Mone
Mega Sage

Hi 

 

Close problem on what condition ?

 

 

Chuck Tomasi
Tera Patron

I recommend setting a system property (my.problem.resolution.days) and using a scheduled job against it to query for active records that are resolved 5 or more days ago. If you want make this easier... Consider doing this without any script with a simple update set add-on that I made specifically for situations like this.

Scriptless scheduled jobs

If you've got Kingston or later, you should also consider doing this with Flow Designer.

Hello from the future - 

 

Yes, use Flow Designer!

 

  • Trigger: Scheduled Daily
  • Action 1: Look up records with the following conditions:
    • State is Resolved, and
    • Updated | Relative | Before | 7 Days ago, and
    • Resolved | Relative | Before | 7 Days ago
  • Action 2: For each item in Action 1
  • Action 3 in the 'For each loop' from Action 2: Update Record with the following fields:
    • Problem state | Closed
    • State | Closed
    • Work Notes | "System auto-closed Problem after being in Resolved state for 7 days"
    • Closed by | Action 2 > Problem Record > Resolved by
Please mark this response as correct and/or helpful if it assisted you with your question.