Auto Populate category and sub category based on CMDB Class

Sohail khilji2
Kilo Contributor

based on configuration item selected on incident table it has to auto populate category and subcategory field. reference has to be (configuration item class based on which the category has to populate)

example: 

if configuration item class is 'printer' then category has to be hardware

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

you can configure on change client script to add choice list options for category and subcategory values.

 

https://www.servicenowguru.com/scripting/client-scripts-scripting/removing-disabling-choice-list-opt...

 

Regards,

Sachin

i do have choices on category and sub category 
i just want them to auto populate based on CI selected in incident form.

 

lets say: example

if CI is selected as dell cpu

then 
category has to auto populate to : Hardware (which is a choice)

sub category has to auto populate to : cpu (which is a choice)

 

hope u got my requiremt clear.

I didn't see a conclusion to this and so:

You'd need to categorise each CI either using an existing attribute such as model, or by adding a category and subcategory field to the CI table and then populating it. 

Then you just need to bring that back when the CI is selected and use it to populate the choice fields.