How to auto populate configuration item field in incident form?

Nitin21
Tera Contributor

How to auto populate configuration item field in incident form when 'xyz' option is selected from category choice field (reference). The configuration item field should display one (asset assigned first to user) of the many asset numbers assigned to user. 

7 REPLIES 7

swathisarang98
Giga Sage
Giga Sage

Hi @Nitin21 ,

 

you can create Assignment Rule to set CI based on category 

System Policy -> Rule -> Assignment 

swathisarang98_2-1710770231228.png

 

swathisarang98_0-1710770135905.png

swathisarang98_1-1710770162591.png

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

 

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Nitin21 

 

To do this, you need a mature  CMDB and mature data as well. We use utilized teh cat and sub cat option on CI to populate our data .

 

Script / code shared by @swathisarang98  will populate hardcore CI , which is not you looking for. 

 

In your case, you need to run a look up 

1. see how many CI mapped  to 1 CI.

2. From CI, pick up only first CI.

 

For this need to write a code.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Yes I'm looking for help with the code. Guide me please.

My friend, wish I do code 😞  @AshishKM  @Sandeep Rajput can help more.  or @swathisarang98  too  🙂

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************