How to auto populate configuration item field in incident form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 06:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 06:57 AM
Hi @Nitin21 ,
you can create Assignment Rule to set CI based on category
System Policy -> Rule -> Assignment
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 07:08 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 07:12 AM
Yes I'm looking for help with the code. Guide me please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 07:15 AM
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]
****************************************************************************************************************