UI Builder components using script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 07:25 AM
I have been asked to make some more accessible visualization of our Business Taxonomy. Within the UI Builder I have made a page that allows them to select root capabilities to visually show:
1. The contained Capabilities in a vertical list with a repeater listing the Business Applications that provide those Capabilities listed under each Capability (this is similar to how they had it laid out in Excel)
2. A listing of unique Business Applications listed under the selected Root Capability along with the associated costs that they want to see.
3. A total for each of the cost fields for the unique application listing (since we don't want to double up an application cost where the application provides more than one capability)
One of the earlier asks was to be able to view the relationship view, which is normally seen within the Business capability, but not as 'messy'. I was able to create a script that will take the business capabilities of a specific Root capability and convert it to a JSON file that the Content Tree can use, but for this to be dynamic, I would need to be able to run that script within the Item definition script in the Content Tree. Right now I have 2 glide scripts used to get the data, one for cmdb_ci_business_capability to get the proper list of level 1 capabilities, the other to get the related data from cmdb_rel_ci.
If instead I should be using data resource (which I do have one already for the L1 Capabilities based on the root Capability selection), how would I parse through those records in the Content Tree script? does api.data.l1capabilities.results return a glide record? I am having difficulties finding good reference material around this.
Thanks.