doc/user/glql/data_sources/_index.md
GLQL can query the following data sources:
| Data source | type values | Description |
|---|---|---|
| Work items | Issue, Incident, TestCase, Requirement, Task, Ticket, Objective, KeyResult, Epic | Issues, epics, and other work item types. Default when type is omitted. |
| Merge requests | MergeRequest | Code review and merge workflow. |
| Pipelines | Pipeline | CI/CD pipelines. |
| Jobs | Job | CI/CD jobs within pipelines. |
| Projects | Project | Projects within a namespace. |
Each data source has its own set of supported fields for filtering, display, and sorting.
Specify the data source in your query by using the type field.
For example, type = Issue or type = MergeRequest.
For data sources that support multiple types, use the in operator to query across types.
For example, type in (Issue, Task).
Each data source requires a scope to define where to query data from. The allowed scopes vary by data source and are documented on each data source page.
Define the scope in your query. For example:
query: type = issue and project = "gitlab-org/gitlab"
If you don't specify a scope, GLQL infers it from where the query is embedded: