CA Service Management

Expand all | Collapse all

Other colors for tickets

  • 1.  Other colors for tickets

    Posted 08-21-2017 10:38 AM
      |   view attached

    Good morning everyone!

     

    To change the color of a incident ticket, we can use the macros:
    "macro:13094 -> Def. viol. SLA da CR =Previsto" (orange) and "macro:13035 -> Def. violação de SLA = Violado" (red).
    Do you know if there are other colors that we can use natively?
    If it does not exist, how could we create new colors?

     

    Edit:

    Other equal issue:

    New Color codes for request and incidents 

     

    Thanks a lot for the help.



  • 2.  Re: Other colors for tickets

    Broadcom Employee
    Posted 08-21-2017 10:49 AM

    Hi Rodrigo,

     

    I noted a community page similar to the lines that you are checking as below. Hope this helps.

     

    I found a way to remove orange color for VIP / special handling users, pls follow below steps:

    1. Edit list _cr.htmpl using WSP

    2. Locate below code:

    <PDM_MACRO name=lsWrite text="pdm_if '@{list.customer.active_special_handling.length:0}' != '0'">
    <PDM_MACRO name=lsWrite text="add_icon_to_cust = 1;">
    <PDM_MACRO name=lsWrite text="ref_num_style = 'listWarning';">
     

    3. Remove below line after add_icon_to_cust = 1 line

    <PDM_MACRO name=lsWrite text="ref_num_style = 'listWarning';">

    4. Publish list_cr.htmpl

    5. Click on request in scoreboard, VIP's should only be identified by the megaphone without orange color. 

    6. Repeat steps 1 to 4 for list_pr.htmpl, list_chg.htmpl and list_in.htmpl.



  • 3.  Re: Other colors for tickets

    Posted 08-21-2017 11:08 AM

    Maheshwar_Kusuma

    Thanks for the help, but what I want is to create new colors do not remove them from the screen.



  • 4.  Re: Other colors for tickets

    Posted 08-24-2017 10:33 AM

    New colors can be added similarly to the existing ones - in the place indicated by the post above. Define your CSS style - to add the color -  in $NX_ROOT/site/mods/www/htmpl/web/analyst/styles_site.htmpl, e.g. listColorX, then in the list_xyz.htmpl file add your own PDM_IF statement, similar to the ones for listWarning.

    Look in the $NX_ROOT/bopcfg/www/wwwroot/css/analyst_styles.css for how the listWarning CSS class is defined and add your own in the custom styles_site.htmpl



  • 5.  Re: Other colors for tickets

    Posted 09-05-2017 08:38 AM

    Changes to CSS will only change colors for existing macros, but will not create new color options.
    I need to have 4 macro options: orange, red, gray and black (the first 2 already exist).



  • 6.  Re: Other colors for tickets

    Posted 09-06-2017 08:23 AM

    As I said:

    ...then in the list_xyz.htmpl file add your own PDM_IF statement, similar to the ones for listWarning.

    Once you define your new colors, you'll also need to define the conditions upon which said colors are applied. The OOB conditions are looking at the SLA violation status, your conditions can refer to other attributes on the tickets.



  • 7.  Re: Other colors for tickets

    Posted 09-06-2017 08:54 AM

    What I'm needing is precisely creating macros to use in new SLA violation conditions.

    That's why I wanted to create new colors.



  • 8.  Re: Other colors for tickets

    Posted 09-18-2017 07:33 AM

    HI,

    <PDM_MACRO>  are just a piece of java script put together for ease of use.

    You can create your own the same way either that I' m not sure of your requirements and if just for color perspective may not be needed at all.

    i.e the lsWrite macro refered above translate to the javascript below:

    ////////////////////////////////////////////////////////////////////////////
    // $RCSfile: lsWrite.mac,v $
    // $Revision: ASPEN.3 $
    // $Date: 2004/09/01 15:19:06 $
    // Description:
    //    Insert text into the pdm_list portion of a resultsSet
    ////////////////////////////////////////////////////////////////////////////

    #args
       both=no            // Insert same text in the header section
       text=              // Text to insert

    #data
    <pdm_set PRE.pdmlist+="&{text}\n">

    <pdm_if "&{both}" == "yes">
    <pdm_set PRE.temptext="&{text}\n">
    <pdm_eval defer=yes text=PRE.temptext>
    </pdm_if>

    Have a look in the sample\macro folder for the OOB at a start of your journey

    \J



  • 9.  Re: Other colors for tickets

    Posted 10-16-2017 07:08 AM

    I would like to create the new colors in the same way as the ones that already exist (via macros), so avoid customizing screens and leave the standardized procedure in a single way.

    But I thank everyone for their attention.