Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Problem ticket

nameisnani
Mega Sage

Hi Team, 

 

can any one please help me here , Whenever any end user while creating new problem ticket it has to be assign to ' Techhub' .

 

How should i do this can any one please help me .

 

Thanks,

7 REPLIES 7

@nameisnani 

You can write onChange.

Field will be any which is mandatory and end user will change.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Hi @nameisnani,

It seems Assignment Group is mandatory. Write an onLoad Client Script for filling the Assignment Group field. 

 

function onLoad(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }
    if (g_form.isNewRecord()) {
        g_form.setValue('assignment_group', 'PASTE_SYS_ID_OF_REQUIRED_GROUP');
    }
}

If you found my reply useful, please mark it as solution and helpful.

 

Thanks and Regards,

Ehab

Ehab Pilloor
Mega Sage

Hi @nameisnani,

 

You can achieve it using Assignment Rules module. Set no condition and table as Problem. And in Actions Tab, you can choose assignment group is Techhub. Or if it is User profile, use Assigned to is Techhub.

 

If you found my reply useful, please mark it as solution and helpful.

 

Thanks and Regards,

Ehab