Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to set default filter for Add affected CIs popup window?

dianemiro
Kilo Sage

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.

find_real_file.png

Regards,
Diane

1 ACCEPTED SOLUTION

dianemiro
Kilo Sage

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.

View solution in original post

5 REPLIES 5

Hi Diane,

This is an old thread but I'm taking my chances. I have exactly the same requirement from a client of ours. Can you share how you achieved this?

Many thanks!