"Interceptor for Problem Tasks Needs Conditional Task Type Display Based on Problem State"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 03:09 AM
When creating a Problem Task, the interceptor page has two options by default but we have two scenarios as below
When the parent Problem’s state is "Root Cause Analysis," the interceptor page should display both task type options: Root Cause Analysis and General.
When the parent Problem’s state is "Fix in Progress," the interceptor page should display only one task type option: General.
Both use cases rely on the same interceptor (`sys_wizard`). Deactivating the "Root Cause Analysis" option to meet the "Fix in Progress" requirement breaks the first use case, as it removes the RCA option entirely. We need a solution to dynamically display task type options based on the Problem’s state.
This issue causes confusion for users and delays in task creation, impacting our problem management process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 03:31 AM
Hi @rachamaa
You keep both options "Root cause analysis" and "General" in sys_wizard_answer .Upon clicking these options, Create an onload client scripts on table where these options landed and then show some messages to guide them to select the right options like when they choose the option Root cause analysis for fix in progress state and return false.
Regards,
Akiladevi Rajendran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 03:37 AM
you can use these 2 approaches. 1st approach is recommended by me when compared to 2nd one
1) disable the interceptor and directly take user to that Task type based on PRB State i.e. when PRB State = Fix in Progress the new button will take user and create Task type - General
OR
2) use query business rule on sys_wizard_answer table as per this link
Hide Interceptor Links based on certain conditions
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 04:40 AM
Could you please specify more on query business rule on sys_wizard_answer table.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 04:57 AM
it's shared in the link I mentioned above but I am not recommending that approach. Easiest approach is 1st one.
Did you check which UI page or modal is invoked when you click the New button which opens the interceptor?
if something can be tweaked there
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader