Java script to replace affected Item!!

Hi Team,

We are looking for script, Once any ticket opens with particular CI's automatically affected item to be "XYZ". Currently we are using with title of the descprition we are looking replace with CI's value.

/////////////////////////////// XXX///////////////////////////////////////
if(system.functions.index("DAD",record.brief_description)==1 || system.functions.index("Alert: DAD",record.brief_description)==1 || system.functions.index("Memory usage",record.brief_description)==1 || )
{
record.affected_item="XYZ"
}

  • Hi Tom,

     

    If the afftected Item is fetteched from "device" table then you can make use of link itself written for 'logical.name' .

     

    Regards,

    Krn

  • Yes! It's in device table. How I can use the link!!

  • Yes! It's in device table. How I can use the link!!

  • Hi,

    If you this to be configured in IM ticket then,

    link->probsummary->find for name "logical.name"-> right click on the logical.name--> Select line-->fill the field names as shown in the attachment.

    Regards,

    Krn

     

  • Hello.

    Can you describe more detail all process.

    How do you open a ticket, is this interaction...? (opened\added automatically by email, added maually by operator,...)

    Link give you ability choose from interaction (for example) real CI from your devices (manually)

    Your script doesnot check is there such CI in your device or not.

     

  • Hello,

    Thanks for the feedback, We have integration RTSM-SM, When any devices goes down RTSM forward alert to SM. Based upon the event Incident ticket is created. 

    For particular CI's we require affected_item to be "XYZ". All these days we were using with title based!! 

    /////////////////////////////// XXX///////////////////////////////////////
    if(system.functions.index("DAD",record.brief_description)==1 || system.functions.index("Alert: DAD",record.brief_description)==1 || system.functions.index("Memory usage",record.brief_description)==1 || )
    {
    record.affected_item="XYZ"
    }

  • Hello,

    Thanks for the feedback, We have integration RTSM-SM, When any devices goes down RTSM forward alert to SM. Based upon the event Incident ticket is created. 

    For particular CI's we require affected_item to be "XYZ". All these days we were using with title based!! 

    /////////////////////////////// XXX///////////////////////////////////////
    if(system.functions.index("DAD",record.brief_description)==1 || system.functions.index("Alert: DAD",record.brief_description)==1 || system.functions.index("Memory usage",record.brief_description)==1 || )
    {
    record.affected_item="XYZ"
    }

  • I do not understand what result you wish to obtain.

    There is a field logical.name  (in incidents and probsummary table)

    You can configure the integration to write the value directly into the field you need (logical.name). Your RTSM system must have same name for device as SM have it in device table for logical.name field

    Or you mean that RTSM and SM have not same name for devices. And RTSM recieve XXX name to SM and SM should interpret it as "XYZ"

  • I do not understand what result you wish to obtain.

    There is a field logical.name  (in incidents and probsummary table)

    You can configure the integration to write the value directly into the field you need (logical.name). Your RTSM system must have same name for device as SM have it in device table for logical.name field

    Or you mean that RTSM and SM have not same name for devices. And RTSM recieve XXX name to SM and SM should interpret it as "XYZ"

  • I do not understand what result you wish to obtain.

    There is a field logical.name  (in incidents and probsummary table)

    You can configure the integration to write the value directly into the field you need (logical.name). Your RTSM system must have same name for device as SM have it in device table for logical.name field

    Or you mean that RTSM and SM have not same name for devices. And RTSM recieve XXX name to SM and SM should interpret it as "XYZ"