Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Ankur Bawiskar
Tera Patron
Tera Patron

Often, we need to add a Watch list to the standard ticket configuration. However, out-of-the-box (OOB) this isn't allowed due to the business rule "Allow only whitelist fields for Header" Since this business rule is read-only, we cannot disable it.

Approach:

You can set or append the watch_list field to the existing standard ticket configuration record and update it via a fix script with setWorkflow(false). This approach skips the OOB business rule during the update.

Steps to Follow:

  1. Select your application scope as "Service Portal - Standard Ticket"
  2. Create a fix script, use the following code, and run it:

 

 

var rec = new GlideRecord('ticket_configuration');
rec.get('33ad80e787f10010e0ef0cf888cb0b87'); // sysId of the standard ticket config record
rec.info_fields = rec.info_fields + ',' + 'watch_list';
rec.setWorkflow(false);
rec.update();

 

 

 

Output: Watch list added to the incident standard ticket config record and the outcome in portal

standard ticket config add watch list.gif

Comments
magnushedlu
Tera Guru

Hi @Ankur Bawiskar 

 

Will this fix script also enable users, such as the caller, to add/remove users from the watch list or is it “read only”?

 

HUB_RL
Tera Contributor

Hi @Ankur Bawiskar I have a similar question as @magnushedlu. Is there a way for a member of the watchlist to "opt-out" once added to the watchlist if added by the ticket submitter? There doesn't seem to be an easy way that I have found to opt-out of notifications sent when you are a member of a watchlist. 

 

Curious to know if there is an OOTB solution or best practice that others are using for this use case. 

V S Jithendra K
Tera Contributor

Hi @Ankur Bawiskar, i have the same question asked by @magnushedlu  & @HUB_RL . Is there a way users can add or remove from watchlist?

 

@HUB_RL , @magnushedlu  : Did you find any solution for it? If so, kindly share.

Ankur Bawiskar
Tera Patron
Tera Patron

@V S Jithendra K 

Please post a question for this and share all the details and tag me there as this is a blog

Version history
Last update:
‎01-23-2025 05:52 AM
Updated by:
Contributors