Event Management - Alert Short Description Not Setting as Expected

stevemacamway
Giga Expert

Beyond the basic flow shown in documentation, does anyone have a details list / diagram of the steps and Event goes through to become an Alert?

Using London, I'm trying to set the Alert Short Description to be something different than the Description for , but I've run into some issues, and I'm hoping someone can point out to me how the Short Description is being set. 

I tried doing this in my Event Rule but, oddly, this doesn't stick. It gets overwritten by the time the Alert is created. 

So, I added code in the EvtMgmtCustom_PostBind_Create and EvtMgmtCustom_PostBind_Update script includes. This is where it gets weird. 

The EvtMgmtCustom_PostBind_Create script works. Alert is created, and it has the Short Description that I want. But, the EvtMgmtCustom_PostBind_Update does not. It sets the Short Description to ${type}: ${node} - ${description}. 

I've validated that my code is running (gs.info statements galore in the script), and even checked the value of the alert.short_description right before the final 'return true;' statement. And yet, the updated Alert now has the wrong Short Description. 

I've tried looking through the other script includes to see if there is something else that is doing it, but no luck. If anyone has any ideas, or can point me in a direction to look, I promise I'll give you 50,000 fake internet points. 

Steve

7 REPLIES 7

Yeah honestly anything that involves that back-end code it's almost always best to open a HI ticket but this behaviour definitely is strange. let me know what they come back with.

@stevemacamway 

Hello Steve , I am looking to update Short Description similarly but unable to locate the Post Bind scripts - Can you please provide me a URL link of Post bind scripts

Here's search that will give you the list of Script Includes that start with EvtMgmtCustom_:

https://<<your instance>.service-now.com/sys_script_include_list.do?sysparm_query=sys_package.nameSTARTSWITHEvent%20man%5EnameSTARTSWITHEvtMgmtCustom_&sysparm_view=