The CreatorCon Call for Content is officially open! Get started here.

Need to make assigned to mandatory in incident when state is except New or cancelled in vtb board

prasannasun
Tera Contributor

Hi Everyone.

 

I have requirement where I have make assiged to mandatory  when we are moving vtb cards related to incident from one state to another except new or cancelled.

 

I checked ui policies with only related to VTB view it didn't worked, created business rules it is impacting all the views like service operations workspace, native ui and also VTB.

 

here my logic is to make assiged to mandatory only in vtb board.

 

is there any way that we can make it work in vtb board only not impacting any other views or any places.

1 REPLY 1

kaushal_snow
Mega Sage

@prasannasun ,

 

In ServiceNow you can’t reliably scope a UI Policy or Business Rule only to VTB board moves out of the box, but you can write a client script on Incident (onChange of state) that checks for a VTBspecific parameter (for example you could have your VTB card click add a sysparm_vtb=true flag to the URL or detect g_form.getParameter('sysparm_board')) and if that flag is present and the new state is not New or Cancelled call g_form.setMandatory('assigned_to', true), otherwise do nothing.....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/