"Interceptor for Problem Tasks Needs Conditional Task Type Display Based on Problem State"

rachamaa
Tera Contributor

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.

6 REPLIES 6

Akiladevi Raje1
Giga Guru

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

Ankur Bawiskar
Tera Patron
Tera Patron

@rachamaa 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

Could you please specify more on  query business rule on sys_wizard_answer table.

Thanks in advance.

@rachamaa 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader