Skip to main content
Question

Closed Events, Stop Re-open After x Days

  • January 30, 2025
  • 4 replies
  • 49 views

askey-s
Sidekick (Customer)
Forum|alt.badge.img+5
  • Sidekick (Customer)
  • 6 replies

Hi

We have times when staff re-open events days/weeks/months after they were resolved and closed.  It’s accepted that, sometimes, the re-open is valid should the resolution be found to not be correct.  However, it’s the time frame of the re-open that can be the issue.

On the SmartMail generated closure email we state that the event can be re-opened within 3 weeks of the closure, and give the date before which it can be, but there’s nothing to actually stop this happening 22+ days after closure.

I believe that there isn’t a way to remove the re-open action for events (unless I’ve just not seen it) so I’m looking at utilising the Action Processor to do the job and apply a closure action and, within the Action Processor manual in the wiki there is an example of a closure before applied after a number of days:

 

{

[[ Closure following at least 3 Chase up actions with more than 7 days difference ]], [[ ACT_TYPE_SC == "CHASE UP" and ACT_TYPE_COUNT >= 3 and EVENT_TYPE == "i" and DAYS_SINCE_1ST_ACTION > 7 and EVENT_STATUS ~= "closed" ]], { ACT_TYPE_SC = "CLOSURE", CAUSE_ITEM_SC = "$ITEM_SC", ACT_DESC = [[ Automatic action following at least 3 Chase up actions with more than 7 days difference. ]] }, "continue"

},

I’m not sure how/if it can be configured for what we need and, before going do this route, I was wondering if there was another way for this to be done.

 

All assistance would be very much appreciated.

Thank you, Steven.

4 replies

Forum|alt.badge.img+10

24r2 includes automatic resolved → close rules . Could you use this to close incidents after 3 weeks and removed the permission to re-open closed (but not resolved) incidents from your users?

Pre 24r2 the Action Processor or ETM is often used to implement this sort of ‘close after x days’ type of function.

 


askey-s
Sidekick (Customer)
Forum|alt.badge.img+5
  • Author
  • Sidekick (Customer)
  • 6 replies
  • January 30, 2025

Thank you for this.  We’re currently at v11.7.4 and will be moving to v11.8.3 in a couple of weeks.  We’re months away from going to 24R2 so I’ll have to look at the AP or ETM route.

The 24R2 change, though, looks like it’s an auto-closure after a pending closure action.  We’ve not an issue with that but the re-opening after closure.  I will, though, look more closely at it when we in a position to move that version in test.


Forum|alt.badge.img+8
  • Hero (Customer)
  • 43 replies
  • January 30, 2025

What you could do is give your professional users a “request reopen” action. 

You can trigger an ETM channel via the AP in a similar fashion to this: 

You will need to add this code above the “set_of_rules” within your ActionProcessorRulesConfig:

strETM = [[PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& ']] .. AXIOS_BASE .. [[\Software\ETMImportTool\importtool.ps1'"  -verbose -url ]] .. ETMUrl .. [[ -username ]] ..  ETMUser .. [[ -password ]] .. ETMPwd .. [[ -simpleResult true -channel ]]

and this into your base_config:

ETMUrl = "<<YOUR REST URL>>/assystETM/REST/"
ETMUser = "<<REST USER>>"
ETMPwd = [[<<REST PASSWORD>>]]

Rule to trigger:

    {
        [[ <<RULE NAME>> ]],
        [[ ACT_TYPE_SC == "<<Action Shortcode>>"]],
        strETM .. "'<<Channel name>> $EVENT_ID", 
        "stop"
    },

 

Now you can use the ETM to search for the event by its ID, and by using the “resolutionActual” time (in format of epoch) you can work out if this was over X weeks ago. Then if so, run a datamapper that takes a “reopen” action that is available only to an automation account and if it is over X weeks, then to not take that action. 

Alternatively - you could have it re-raise the ticket if it is over X weeks, if that is something you would consider. 

Bit of a convoluted route, but should work. 


Forum|alt.badge.img+10

Kevin’s cunning plan could be implemented more neatly (IMHO) in a pure ETM solution with a Channel triggered by an appropriate Destination. That would avoid the need for the AP.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings