CA Service Management

  • 1.  Functions used by Priority calculation

    Posted Apr 16, 2015 08:05 AM

    Hi Team,

    What functions or .js files are used by Priority calculation or when priority populated by filling the urgent and impact value. I need to do the same with severity. When severity is equal to 5-High escalation then populate priority must be 1. Can anyone help me on the same?

     

     

    Regards,

    Sippy Aggarwal



  • 2.  Re: Functions used by Priority calculation

    Broadcom Employee
    Posted Apr 16, 2015 08:55 PM

    Hi,

    You may review the apc.js

     

    Regards,

    Mark



  • 3.  Re: Functions used by Priority calculation

    Posted Apr 17, 2015 01:08 AM

    Hi Mark,

    Thanks for your response

     

    I am reviewing the apc.js

     

     

    Regards,

    Sippy Aggarwal



  • 4.  Re: Functions used by Priority calculation

    Posted Apr 20, 2015 01:38 AM

    Hi Mark,

     

    I have reviewed the apc.js.Could you please tell me how i can add user defined/customized functions in js file as my requirement is publish priority on particular severity(as above mentioned).

     

    Regards,

    Sippy Aggarwal



  • 5.  Re: Functions used by Priority calculation

    Broadcom Employee
    Posted Apr 20, 2015 02:40 AM

    Hi,

    As per my understanding, the function set_priority( matrix, impact, urgency) in apc.js should be the function to set the value of priority.

    Note the following lines:

     

    new_pri = matrix[idx];

    var pri_element = document.main_form.elements["SET.priority"];

    if( new_pri != "" && typeof pri_element != "undefined" )

    {

    pri_element.value = new_pri;

     

    There is other function in apc.js to generate the matrix, but including the severity in matrix may be too complex.

    It could be better to add some logic after the above lines, set the pri_element.value again if certain condition is met.

     

    NOTE1: the pri_element.value is the enum of pri, not the sym of pri

    NOTE2: the above is just my understanding, and for your consideration only. I never test it.

     

    Regards,

    Mark