Customize Substatus in incident template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 03:52 AM
Hello community,
We have this existing configuration where the sub status depends on status field in service now. Now, there is a need to customize it based on CI selection and flag.
Eg :- If CI selected is "Xyz" and a flag is checked then for a status - pending option it should only display 3 sub status option. Current configuration displays 6 options for status pending
Question: -
Is it a good practice to customize this way?? If yes, how can we achieve it? Please let me know your thoughts.
Thanks,
Sajal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 04:34 AM
Create a client script for this (onLoad/onChange -> hide the options when CI - xyz). Make sure all options are available through the dependencies added.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 07:44 AM
Hello Mark,
I tried using g_form.removeoption() but it is not working. Could you please help here?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 02:51 AM
Please share your entire script (and did you have it onChange and onLoad)?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 03:01 AM
It is defined on Change when status changed to "pending" because for status pending only substatus populates.
below is my script