- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2016 07:47 AM
Hello,
My high priority incidents that have been resolved are supposed to auto-close after a certain amount of time, but they are remaining in a state of 'Resolved'.
I am familiar with the system properties page that autocloses incidents as well as the auto-close business rule, however the OOB script purposely does not query as I have copied : gr.addQuery('priority','NOT IN','1,2'); I need my higher-priority resolved incidents to auto-close at a different time from the lower priority incidents. This is only dealing with resolved incidents overall.
Thanks in advance ,
Cliff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 06:11 AM
Hi,
Try the following solution:
Create a new system property for the high priority incidents and put the value of the system property on "Days" not "Hours".
Create a new business with the same script as the OOB BR and just put the name of your newly created system property.
Edit the old BR whith a condition on the priority of the incident
Now create a new "Schedule Item" similar to the OOB "Autoclose Incidents" containing the name of your new BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 05:59 AM
Hi Abhinay, I wanted to know if you were still available for assistance on this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 08:15 AM
Hi Cliff,
Sorry about the delay. If you don't mind can you let me know your use case here so that I can write the code for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 10:50 AM
I think I figured it out but if you have the time, I would like to compare our scripts. My use case is if it is a P1 or P2 incident that has been resolved for 30 business days it should auto-close.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 11:33 AM
sure post your scripts here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 06:11 AM
Hi,
Try the following solution:
Create a new system property for the high priority incidents and put the value of the system property on "Days" not "Hours".
Create a new business with the same script as the OOB BR and just put the name of your newly created system property.
Edit the old BR whith a condition on the priority of the incident
Now create a new "Schedule Item" similar to the OOB "Autoclose Incidents" containing the name of your new BR.