Need to filter CI

Arun Priya
Tera Contributor

Hi Everyone,
When the variable environment is chosen as prod. It should not display list of configuration item (variable in change request) were its environment is development, others should be shown.

It does work when I change in dictionary Override. But I need those changes when a variable called environment is selected as "production" it s
hould not show the Ci which has development as the environment in the CI

ArunPriya_1-1752760632546.png

 

 

6 REPLIES 6

J Siva
Tera Sage

Hi @Arun Priya 

Use javascript in the Reference qualifier of the cmdb_ci dictionary override attributes.

Where you can use something like below,

javascript: 'u_environment='+current.u_environment //field names may vary

 

Regards,

Siva

GlideFather
Tera Patron

Hi @Arun Priya 

 

just a note, these are not variable but form fields (if you will be searching for documentation).

 

Also, you shared a screenshot from CMDB and you mention something about change request... can you please try to explain it again? What is supposed to happen and where?

 

Environment in CMDB might not be the same as Environment in Change tables...

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @GlideFather 
when environment in change request form is selected as production then there is another field in the change request form called "configuration item" it is a reference type from cmdb table, which should not show list of CI choices that are having the environment type as 'development'
I have tried using dictionary override it works by default. It should apply when the environment in change request is changed to 'production'

and the Environment is a custom field, right?

 

please share what you did to see

 

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */