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.

Limiting Affects CI list on the Change Request Form

Not applicable

Hi

I need to limit the list of Affects CIs that are available for 'linking' to the Change Request. Currently, all CIs seem to be listed. What I need to do is limit the list of CI's to those of class = Business Services, and then further limit those by comparing a custom field within the CI to a custom field within the Change Request. Something like this:

List all CI's whose class = "Business Service" and whose Classification = the current Change Request's Classification.

Is this possible?

Etienne

4 REPLIES 4

rburgering
Kilo Contributor

You should do this with a reference qualifier.
If you click 'personalize dictionary' for the reference field, you should see the field 'reference qual'. You can fill it with the arguments you just described.
class=service etc.

Good luck!


Not applicable

I don't think that will work. It's not a reference field, it's a M2M chooser. I have a request into the HI system to be able to make a default filter when the M2M chooser is loaded, it doesn't seem to be attracting much attention though.


Not applicable

yes, its not a reference field, its one of those associations that you get when you choose 'Personalise List' on the Change Request form. What seems to be displayed is any table that contains a column for Change Requests.

The customer's request seems reasonable. There are many CIs in the CMDB, but only a small subgroup of those is pertinent to this particular Change Request. Sure the end user could create filters themselves when they choose the CI (like class = Business Service) but the end user has no knowledge that the CIs they are after are in a Section called Business Service, nor do they know that the keyword is 'class'.

Etienne


Not applicable

I have a need for this as well. There is a category field I can use to create a list of values I can use for scripting an advanced reference qualifier, but so far I have not gotten it to work, so I just took it out. If anyone has any success with this please give me some tips, it would be a great feature to include before we go live.