- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2019 02:29 AM
Hi Everyone,
We have a related list under Change Request called Affected CI then under this related list, we have add button. Upon clicking the Add button, a window will popup (see below). How can I set the value of the Configuration Class to always Configuration Item for all users then how can I set the default filter to Company is the same as the company under change request and how can I hide the breadcrumbs as well. Thank you in advance.
Regards,
Diane
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 01:44 AM
I was able to do this by modifying AssociateCItoTask script include by adding the following lines:
var gr_chg = new GlideRecord('change_request');
if(gr_chg.get(chgReqId)){
url.set("sysparm_query", 'install_status!=7^company=' + gr_chg.u_customer + '^ORnameLIKEgeneric');
Thanks everyone who helped! Marking this as closed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2019 03:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2019 03:41 AM
Hi Edoardo,
Thank you for your response. But I want it to be available for all users. It should be the default filter for this related list.
Regards,
Diane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2019 06:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 01:44 AM
I was able to do this by modifying AssociateCItoTask script include by adding the following lines:
var gr_chg = new GlideRecord('change_request');
if(gr_chg.get(chgReqId)){
url.set("sysparm_query", 'install_status!=7^company=' + gr_chg.u_customer + '^ORnameLIKEgeneric');
Thanks everyone who helped! Marking this as closed.