Switching the Context of the Inventory View

When you open the Inventory view, you see the inventory associated with only your Code Insight projects. However, you can switch the context of inventory items as described in these sections:

About the Available Contexts for the View
Switching the Context of the View

About the Available Contexts for the View

The following describe the three major contexts that are available for the Inventory view. You can switch between contexts as needed:

Contexts of the Inventory View

Context

Description

My Projects

Shows all published inventory across those Code Insight projects in which you are assigned a role. You might use this context to show areas where you need to provide review or remedial work, or you might want to review the overall state of inventory found in your projects.

This is the context enabled by default when you open the Inventory view.

All Projects

Shows all published inventory across all projects in your Code Insight system. This context is helpful in visualizing trends in your company’s use of open- source and third-party code in its software projects.

Selected Project

Shows all published inventory for a selected Code Insight project. Since projects represent versions of a particular software product, this view allows you to see all inventory items for that product. Furthermore, you can also opt to list the inventory for all child projects of the selected project. These child projects represent modules used by your top-level product. You can directly link to the inventory item of the child project or to the child project itself. You can also view the parent hierarchy of the child project to understand the provenance of the inventory items.

See Including the Inventory of Child Projects on the Inventory View for details.

When you switch to a different context, any filtering criteria that you have selected on the Advanced Inventory Search dialog remains in effect. See Filtering by Inventory Details for more information about setting this criteria.

Switching the Context of the View

Use the following procedure to switch the major context of the Inventory view.

To switch the context of the Inventory view, do the following:

1. Open the Inventory view. See Opening the Inventory View.
2. In the dropdown list at the top of the view, select the context to which you want to switch the view.

If you select All Projects or My Projects, the list is refreshed with the inventory for the appropriate Code Insight projects.
If you choose Select Project, a dialog is displayed from which to select a project. Once you choose the project, the inventory list is refreshed with the inventory for that project only.

To switch to a different project, click the Change Project button that is displayed next to the dropdown list, and choose another project.

When select to focus the Inventory view on a specific project, you have the option to include the inventory of that project’s child projects, if any exist. See Including the Inventory of Child Projects on the Inventory View.