Clarity Service Management

Expand all | Collapse all

New type on act_log

  • 1.  New type on act_log

    Posted 02-08-2016 09:38 AM

    I would like to know if perhaps is it possible create a new log type?

     

    I need to write a specific activity writing time spent.

     

     

    How can i do?



  • 2.  Re: New type on act_log

    Posted 02-13-2016 01:30 PM

    you can create a new activity type via web service with createObject method

     

    or

     

    create a list and detail html file for activity type object, and add a link to admin menu to access that list and details.

     

    regards,

    utku



  • 3.  Re: New type on act_log

    Posted 02-16-2016 01:45 PM

    You might also need to create a customization in order to add the the new log type in the ticket act log during the execution of your activity.



  • 4.  Re: New type on act_log

    Posted 02-16-2016 03:22 PM

    You can create an trigger on alg object that will fire when log entry is created, than you can create additional log by using spel method generic_activity_log



  • 5.  Re: New type on act_log

    Posted 02-23-2016 09:19 AM

    if you are looking to create a new type of activity available in our menu like for example  "Chase call" you can mimic the existing behavior.

     

    1/ Create a new Activity Notification Chase call with code: CHSCLL

    2/ Create notification rules/templates  and associate them all together may you have the need. (optional)

    3/ Copy the detail_alg.htmpl and rename it to detail_alg_chasecall.htmpl.

    4/ Modify it to your needs but make sure that you modify the line below to reflect your activity type:

        docWriteln("<input type='hidden' name=SET.alg.type value='CHSCLL'>");

    5/ Repeat this operation for the chg and iss object and their respective forms (detail_issalg.htmpl, detail_chgalg.htmpl)

    6/ Modify your menubar_sd.htmpl to have a new items to call this activities under the activities menu by modifying the query_str section as below:

     

    var query_str = w.cfgCgi + "?SID=" + w.cfgSID + "+FID=" +
                    w.fid_generator() + "+FACTORY=" + factory +
                    "+PERSID=" + w.argPersistentID;
    var query_str1 = query_str + "+OP=UPDATE+ACTIVITY_LOG_TYPE=";
    var query_str2;

    var htmpl_str, alg_edit_htmpl = "";
    if ( factory == "chg" ){
      alg_edit_htmpl = "+HTMPL=detail_chgalg_edit.htmpl";
      alg_edit_chscll = "+HTMPL=detail_chgalg_chasecall.htmpl";
      }
    else if ( factory == "cr" ){
      alg_edit_htmpl = "+HTMPL=detail_alg_edit.htmpl";
      alg_edit_chscll = "+HTMPL=detail_alg_chasecall.htmpl";
      }
    else if ( factory == "iss" ){
      alg_edit_htmpl = "+HTMPL=detail_issalg_edit.htmpl";
      alg_edit_chscll = "+HTMPL=detail_issalg_chasecall.htmpl";
      }

    7/ Scroll down the menubar_sd file where you want to place your new menu items and add the below:

    <PDM_OBJECT>

    <PDM_IF "$env.NX_EDIT_INACTIVE" != "No" || "$args.active" == "1">

    <PDM_MACRO name=menuItemLocal label="Chase Call..." function="JavaScript: popupActivityWithURL('\" + query_str1 + \"CHSCLL\" + alg_edit_chscll + \"')">

    </PDM_IF>

    </PDM_OBJECT>

    8/ Repeat operation 6 and 7 for all the different roles using different menubar.

     

    Hope this help.

    This way you can crate any new activity type you like but please remember that customization are not supported by CA and may need rework when upgrading to new release.

    /J