To Make Assigned to mandatory in Service Operation Workspace in problem task form

akhila13
Tera Expert

In the problem task form i want to make the assigned to field mandatory before closing the ticket in service operation workspace How to perform it?

3 REPLIES 3

SANDEEP DUTTA
Tera Patron
Tera Patron

Hi @akhila13 ,

You can create a Client Script , On Submit, something like this sample script :

 

function onSubmit() {
var action = g_form.getActionName();
if(g_form.getValue('state') == '3' && action == 'close_sc_task')
{
g_form.setMandatory('variables.workflow_progression', true);
return false;

}

}

 

Note: Make sure the view is "sow".

SANDEEPDUTTA_0-1752545679192.png

 

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.

J Siva
Tera Sage

Hi @akhila13 
As per OOB configuration, the 'Assigned to' field is mandatory on the Problem Task form. Please find below the details.
There is a data policy in place which makes the 'Assigned to' field mandatory when the state is one of 'Assess', 'Work in Progress', or 'Closed', and the Close Code is not 'Canceled'.

JSiva_1-1752545958504.png

 

 

JSiva_0-1752545751808.png

Regards,
Siva

 

Ankur Bawiskar
Tera Patron
Tera Patron

@akhila13 

it happens out of the box on problem table as per what @J Siva shared.

Is that not working?

Please debug that.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader