- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 04:32 AM
When I cancelled an incident it marks the Closed field at 11/26/2019.
So if I reopen that incident the Closed info is still showing 11/26/2019 and when I actually close out the incident it will still show the same 11/26/2019. So now if managers what to run reports on that the time and dates will not be correct. So how do I get it to where when it's cancelled the Closed field is not populated?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 11:03 PM
Try with this code:
if (current.closed_at.nil() && current.incident_state == IncidentState.CLOSED)
current.closed_at = gs.nowDateTime();
Basically it will populated the Closed date/time field only in case of Incident closure and NOT in case of Incident cancellation.
If I have answered your question, please mark my response as correct and/or helpful.
Thank you very much
Cheers
Alberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 08:19 AM
We have techs here that set the incident to cancelled and then reassigning it to themselves after cancelling it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:01 AM
Umm...ok is that, like, a process you're happy with? Why are they cancelling it? Does that not mess with the SLA's? Seems like an odd Incident management process...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2021 02:59 PM
Hi guys,
Can you please help me with the script of cancelling a incident without a button
Thank you in advance
Regards,
Reddy Nikita Vaikar.