Hide option from interceptor#1871
Closed
Jaspalsinghchot wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Closed
Hide option from interceptor#1871Jaspalsinghchot wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Jaspalsinghchot wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Conversation
WillemZeiler
requested changes
Oct 6, 2025
Contributor
WillemZeiler
left a comment
There was a problem hiding this comment.
Thank you for your submission. In general code looks good. 1 variable is defined, but not used. For the readme it would help if you can make it a bit more descriptive. If you can make these 2 updates you are all good to go!
| @@ -0,0 +1,10 @@ | |||
| (function executeRule(current, previous /*null when async*/ ) { | |||
|
|
|||
| var usr = gs.getUserID(); | |||
| @@ -0,0 +1 @@ | |||
| How often you come across cases where 'Private Task' needs to be disabled from the interceptor that shows up when New button is clicked on the Task table only for handful of users (users who are ITIL users but from XYZ department). This can be controlled by creating a 'Query' Business Rule on Answer (sys_wizard_answer) table. Script will be used in Business Rule to achieve the same. | |||
Contributor
There was a problem hiding this comment.
Can you make this a bit clearer? The intend of the script is to be used in a Query Business Rule on the Answer table?
Can you share why Private tasks would need to be disabled? That will help others determine if this will also be needed in their instance/situation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description:
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions