How to make Incident assignment group mandatory and autofill using assignment rules

Community Alums
Not applicable

Hi ,

I wanted to make the assignment group field mandatory and also it should get auto filled .

The selected Ci from incident is having relationship with a group and that group should be the assignment group of the incident .

I have created an assignment rule first and then Created a UI policy to make field mandatory but getting error when creating new incident because the assignment rule will work after submitting the record and before save the field assignment group is mandatory .

Please guide possible way to achieve the above requirement .

Onload Client script is working but wanted to know if possible from assignment rules (when assignment group is mandatory)

Thank you

 

 

 

 

2 REPLIES 2

Pullela Sony
Tera Guru

Hi Tamilselvan,

Hope you are doing well!!

can you please try writting onsubmit client script like below on Incident table:

g_form.setValue('group', group sysid); //group sysid you can call it from system property 

g_form.setMandatory('fieldname',true);

 

Thank you

Sony

Community Alums
Not applicable

Hi,

I have tried client script and it is working but the requirement is to use assignment rules to populate the assigned group from selected ci (Ci - group relationship table).

also assignment rule script working fine when assignment group is not mandatory

if i made the field mandatory from form design (always mandatory) then assignment rule function will conflict since it will work after saving the record but field is mandatory before saving the record.

is any other way to do this using assignment rule script ? or it is not possible . please suggest.