Need to filter CI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 06:58 AM
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 should not show the Ci which has development as the environment in the CI
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 07:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 07:12 AM - edited 07-17-2025 07:13 AM
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! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 07:19 AM
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 07:29 AM
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! */