Changing priority if Description contains the word Outages, severe or critical
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 03:43 AM
hi i wanna know how could I change the priority with a client script if description contains the word Severe , outages or critical. I think I need to use indexOf but I don't know how.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 03:47 AM
Hi @Teteziho
Don't change priority directly, change impact and urgency , which auto calculate the priority for you.
Client script on change
If Short description contains Outage
Set Urgency
Set Impact
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/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 04:05 AM
whats are the index for impact and urgency ? to put priority on p1 can you send me an code exemple
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 04:11 AM
Hi @Teteziho
Priority is already a read-only field & it will be populated based on the impact & urgency.
If impact == 1 & urgency == 1 then priority will be 1.
Baseline code.
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/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 04:39 AM
but basically I need to use a condition that can look If my description contains one of the 3 words I mentioned above and In client script you can't use contains but IndexOf how could I use the condition ?
