Finding global configurations by using queries
Build queries to find global configurations that meet the attribute conditions you specify. With queries, you can work more efficiently by selecting multiple configurations at a time to complete tasks such as editing attributes or tagging configurations.
Before you begin
- You must be logged in to a Global Configuration Management project area.
- To share your queries with other project area members, you must have the Configuration Lead role or higher, or the Create shared queries privilege.
- To modify and delete the queries that are written by other project area members, you must be assigned that privilege.
About this task
Global Configuration Management queries are not published to Report Builder. To create queries across artifacts, project areas, or servers, build queries in Report Builder.
Procedure
Example
- Choose Configuration Type, is any of, and select Stream. Then, click Add Condition.
- Choose Title, contains, and write manual. Then, click Run.
- Choose Configuration Type, is any of, and select Stream and Baseline. Then, click Add Condition.
- Choose Created From Configuration> Tags, is any of, and write amr. Then, click Run.
- Choose Team Area, and I'm a member of. Then, click Add Condition.
- Choose Archived, and true. Then, click Run.
What to do next

View a specific configuration tree by clicking its name, and then click Edit in the configuration editor to make any changes.
View the list of other queries by clicking the Queries breadcrumb, or on the banner select . To add a query to your Favorites list, click the star icon that is placed with the query name.
Creating queries across project areas
Create queries that run across multiple project areas in the same repository.
About this task
A new query runs against the current project area by default. However, you can choose a set of project areas for querying. When multiple project areas are selected, the query results show all matching configurations from these chosen project areas. The attributes that are available to use for the conditions and result columns are a combination of attributes from the selected project areas.
The query editor collapses equivalent attributes (having the same URI and data type) from different project areas, and flags the following conflicts in the attribute names:
- Equivalent attributes with different names.
- Non-equivalent attributes with the same name.
To resolve these conflicts, assign the same URI to equivalent attributes, and use different names for non-equivalent attributes.
Procedure
- On the banner, click the Queries menu.
You can create a new query or browse to an existing one, and edit it.
- Click the value of the Project Areas field. A window opens with the list of all project areas that you have a read access to.
- From the list, add a set of project areas of your choice, and click OK.
Sharing queries in the project area
Create queries that anyone with at least read access to the project area can run.
Before you begin
About this task
Procedure
Finding global configurations that have external contributions or local configurations
Add conditions to your query to discover global configurations that have external contributions or local configurations.
About this task
You can add query conditions to find global configurations that have external contributions or local configurations. You can also learn about how to enable Global Configuration Management servers to contribute configurations to other Global Configuration Management servers.
Suppose you are a Configuration Lead who is managing the reuse of components across multiple Global Configuration Management servers and want to review the existing usage of external contributions in a particular Global Configuration Management instance. Using these query conditions, you can find global streams that have external contributions in their hierarchy. You can also look for global baselines that don't have a local configuration as a direct child.
- An external contribution is a global configuration from another Global Configuration Management server.
- A local configuration is a configuration from an IBM Engineering Lifecycle Management application.
Procedure
Adding a subquery as a condition
Create queries that can include another query inside it as a condition.
About this task
You can nest one query inside another query by using a Subquery condition.
The value of this condition is another query in the same project area. Whenever the main query runs, the most recent conditions of the subquery are placed inline with the conditions of the main query.
When you select the matches operator, the subquery matches the results that are specified by its conditions. When you select the does not match operator, the subquery results are negated, matching everything that does not meet conditions of the subquery. You can add a subquery condition to a group of conditions, and it works just like any other condition.
Procedure
- On the banner, click the Queries menu.
You can create a new query or browse to an existing one, and edit it.
- On the Conditions tab, click Add Condition.
- Choose Subquery, then matches or does not match, and select a query from the list of available queries.
- Save your changes, and click Run.
Checking existence and non-existence of certain attributes in queries
Customize your query for checking the presence or absence of certain attributes in the global configurations.
About this task
By using some special operators, you can create queries that check the existence and non-existence of certain attributes in a global configuration or component.
Procedure
Running queries
Query results show global configurations from the selected project areas.
Procedure
- On the Welcome page, click Browse and create queries, and explore the queries on the tabs.
- On the banner, click
Note: You can also search and run queries to add configurations in the configuration editor.
In the Add Configurations dialog box, select the Global Configuration Management application and a project area. Click the menu with the search field, and choose a query type (My Queries, Shared Queries, or Favorite Queries) to list all queries. Then, select a query of your choice.
, and select a query.
What to do next
Edit attributes and tag configurations: Select the checkbox placed with a configuration name, and click .
Add or remove attribute columns: To make a temporary change to the results
shown, click the Add or remove columns icon () on the query results table, or right-click the column headings. You can also apply these
temporary changes to the results of the query that you don’t own. You lose your choices when you
leave the results page. To save your column choices, edit the query or ask the query owner to edit
it. Select the Project Area result column from the list to identify the
source of the matching configurations.
Add to Favorites: To add a query to your Favorites list, click the star icon that is placed with the query name.