The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Note taken after a SIR is created off of INC

Justin Dirks1
Tera Expert

Hello everyone! 

 

We have a button on our all INC that allows us to create an SIR.  However, the group that creates said SIR cannot read the SIR based on security permissions and cannot see the ticket in the related list. What I would like to do is simply have a note added to the INC if they create the incident that has "you have created SIR######" just so they can verify that the ticket was created.

 

Any help is appreciated! 

 

Thanks!

1 ACCEPTED SOLUTION

Well then this is easy now! Love that for us.

 

function serverCreate() {
    var securityIncident = new SecurityIncidentUtils().createFromIncident(current);
    current.work_notes = "Security Incident [code]" + securityIncident + "[/code] was created";
    current.update();
    gs.addInfoMessage(gs.getMessage("Security Incident {0} was created", securityIncident));
    action.setRedirectURL(current);
}

 

 

View solution in original post

14 REPLIES 14

I am getting this now, thank you so much for your help

 

Security Incident undefined was created

Curious. Did you try both options from above?

The link worked but the one with no link did not work. Hmmmm

I was assuming that the createFromIncident method returned the entire GlideRecord object which would include the number property, but I guess it's possible that it does not and it is returning the html link string only. I don't have a PDI spun up right now, so it's hard for me to check the exact working of SecurityIncidentUtils. I would say the quick solutions is to just use the html link.

Love it. Thank you so much Michael!