Jump to content

Recommended Posts

Hi my friends,

At these days I have a need to force all the analysts to register the solution in all tickets that he's working with.

So I made this customization below, maybe this should help someone.

_____________________________________________________________________________________________

1. Create a file "zcr_force_soln.spl" (put on $NXROOT/site/mods/majic)

 

cr::zcr_force_soln(...){
    send_wait( 0, this, "get_attr_vals",1,"soln_log.length");
    if (msg_error()) {
        logf(ERROR, "Erro no campo soln_log.length de %s %s - %s", type, ref_num, msg[0]);
        return;
    } 
    int zsoln_length;
    zsoln_length = msg[3];
    if (zsoln_length == 0) {
            string zmsg;
        zmsg=format("Preencha a 'Solução' antes de mudar este %s para fechado.", type.sym);
        set_error(1);
        set_return_data(zmsg);
    } 
}

 

2. Open WSP > Schema Designer

     - Search for table CR > Advanced > Site defined trigger 

PRE_VALIDATE zcr_force_soln() 111 FILTER(status{-> 'RE'});

At this case, the solution is mandatory to status "Resolved"

3. Save and publish;

4. Restart the CA SDM services;

    

 

 

 

 

 

1.PNG

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...