CA Service Management

Expand all | Collapse all

Mapping other CIs values for “Affected Service” field

Jump to Best Answer
  • 1.  Mapping other CIs values for “Affected Service” field

    Posted 02-11-2016 07:58 AM

    Hi boys!

     

    Incidents ticket implements “Affected Service” field and it's linked to “Enterprise Services” CIs.

     

    So, i'm tryinmg to use the same field to mapping other class/families CIs without a new custom field.

     

    This is issue when using “Affected Service” field to mapping other CIs:
    - By Schema Designer this field using a “cr.affected_service::check_family()” trigger, to ensure input “Enterprise Services” CIs values.

     

    The idea is dont use a new custom field.

     

    So,
    -- how can manage this field/trigger to let specify another class/family CIs in “Affected Service” field? or,
    -- how can do to modify this function or replace it to another new, to let specify another class or familt CIs?

     

    Best regards!



  • 2.  Re: Mapping other CIs values for “Affected Service” field

    Posted 02-12-2016 07:04 AM

    Eduardo I guess you could do the following:

    1 - Disable the cr.affected_service::check_family() trigger over designer;

    2 - Add the following to the <PDM_MACRO attr="affected_service" ADDITIONAL_WHERE="class.type='******'"

     

    Haven't tried this myself, but I've seen some discussion on other forums about disabling the trigger.

     

    Hope this helps,

    Érico Prezzi



  • 3.  Re: Mapping other CIs values for “Affected Service” field

    Posted 02-12-2016 09:19 AM

    Great EricoDellaVallePrezzi76043714, now ...to disabling this trigger is enoght edititng \bopcfg\majic\cm.maj file comment line refered to this trigger and restarts SDM service?

    Thanks!



  • 4.  Re: Mapping other CIs values for “Affected Service” field

    Posted 02-15-2016 09:36 AM

    Guys, any suggests about how to removing or disabling this trigger?

    Best regards!



  • 5.  Re: Mapping other CIs values for “Affected Service” field
    Best Answer

    Posted 02-23-2016 10:37 AM

    Hi Eduardo,

    First never modify any magic in bopcfg directly.

    do it trough shema designer as suggested or  create your own mod in site/mods/magic with a modify statement.

     

    Another safe way us to overwrite an existing function is by creating a spl file with the function been declared there and return nothing like:

     

    cr.affected_service::check_family(...) {

    return;

    }

    or write your own code completely may you have any specific needs

     

    as the site/mod is read last this will overwritte the existing. (will require a recycle)

     

    Hope this help.

    Please remember that CA don't support such customization and may require rework for upgrade

     

    /J



  • 6.  Re: Mapping other CIs values for “Affected Service” field

    Posted 02-26-2016 05:14 PM

    Thank you jmayer