CA Service Management

  • 1.  How to fill the assignee field automatically in workflow tasks in change order

    Posted Dec 20, 2018 08:09 AM

    Hi everyone,

     

    I would like to configure the workflow task in change order, when the analyst include a task manually, the assignee field will be filled with the analyst that created the task, in other words, the user logged in.

     

     

    Anyone has ideia to configure this way?

     

    Regards,
    Felipe Nunes



  • 2.  Re: How to fill the assignee field automatically in workflow tasks in change order

    Broadcom Employee
    Posted Dec 20, 2018 03:31 PM

    You could use $cst to default the field in insert_wf.htmpl. $cst is the logged in user.



  • 3.  Re: How to fill the assignee field automatically in workflow tasks in change order

    Posted Dec 21, 2018 07:05 AM

    Hi Chi,

     

    Thank you for helping.

     

    Looking the code in insert_wf.htmpl, I have to change $args to $cst ?
    See the code below:

     

    detailLookup("Responsável","wf_ins_agt","agt",
             1,20, "0","$args.wf_ins_agt.persistent_id","$args.wf_ins_agt",
             "yes","combo_name",
             '<PDM_FMT ESC_STYLE=JS2 PAD=NO>$args.wf_ins_agt_combo_name</PDM_FMT>',
             "$args.SEARCH_STATUS_wf_ins_agt","$args.SEARCH_RESULTS_wf_ins_agt","yes","");

     

    Regards,

    Felipe Nunes



  • 4.  Re: How to fill the assignee field automatically in workflow tasks in change order
    Best Answer

    Posted Dec 21, 2018 11:18 AM

    Hi Felipe,

     

    You can write following code in insert_wf.html

     

    if(jq('input[name="SET.wf_ins_agt"]').val() == '')
    {
    jq('input[name="wf_ins_agt_combo_name"]').val('$cst.combo_name');
    jq('input[name="SET.wf_ins_agt"]').val('$cst.id');
    }

     

    Regards,

    Türker



  • 5.  Re: How to fill the assignee field automatically in workflow tasks in change order

    Posted Dec 26, 2018 12:49 PM

    Hi Türker,

     

    The code works fine.

     

    Thank you!

    Regards,

    Felipe Nunes