Configuration Item not showing up in Change form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 03:18 AM
I see the configuration item available in table but it doesn't show up in configuration item field on change form.
In reference qualifier I see this:
javascript: ['incident', 'problem'].indexOf(current.sys_class_name + '') == -1? '' : 'operational_statusNOT IN' + new OpsStatusFilter('cmdb_ci').by('CreateTask').join()
Does it make any sense, what does this script says?
Please help.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 03:46 AM
First make certain you are evaluating the correct reference qualifier. Since the cmdb_ci field is on the Task table, not change_request, it is available to all tables / records which extend the Task table (incident, problem, change, ...). In the Dictionary Override related list, if there is a record for the change_request table with a reference qualifier override, then the change form is using that qualifier, not the one visible on the main page of the Dictionary Entry for cmdb_ci. If you have an override, it may call a function in a Script Include that you would have to look through to see why your CI does not meet the criteria.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 03:53 AM
This script has nothing to do with your field not being shown. It is a reference qualifier that only applies to the incident and problem table where it will check on the conditions. For change it will have no filter, so the field should show you all ci's.
If the field is on the form for the view you are on, but not visible, you need to check your ui policies/client scripts. But with changes, it will probably be a view that doesn't have the field on it (there are lots of views available for change requests).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark