Populate fields based on Assignment Group in Incident

Saranya K
Tera Contributor

Hi all,

I have two scenarios on the incident form.

  1. I need to set category field mandatory based on specific Assignment Groups
  2. For those specific Assignment Groups and Configuration items are not (ABC,XYZ) then description field should be mandatory.

First I created system properties to fetch the sys_id of Assignment Groups and ci. and have used display business rule to fetch system properties values and i have used scratchpad value in on Change Client Script ,but it is not working properly anyone can help me on this, thanks

find_real_file.png

find_real_file.png

 

 

 

 

3 REPLIES 3

Brian Lancaster
Tera Sage

I'm not sure this would be the best method. g_scratchpad only work on form load. So if something like the group changes or ci changes you will not be able to update the fields without reloading the form. You best bet would be to use an onChange client script with GlideAjax.

Can you suggest me the best way to this.

How we can call two funtions  from script include in  to one client script.

Andrei Silva
Giga Expert

You can create UI Policies instead. The groups are across dev, test and prod. So the sys_id will be the same (should be).

Create 1 to set category as mandatory and second policy to set description as mandatory, for example:

find_real_file.png

 

find_real_file.png

Hope it helps you.