Skip to content

Add support for work items API in GLQL

What does this MR do and why?

Add support for work items API in GLQL

Behind a feature flag glql_work_items, we now support the work items API

References

Screenshots or screen recordings

No change in UI, except that the work items query is used instead of issues.

There are still many compatibility issues with the legacy API, which is why this is behind a separate feature flag. Issues like

  • NOT filters don't support weight and health status (needs a fix in our backend).
  • Health status doesn't work with work items (needs a fix in the compiler).

How to set up and validate locally

  1. Enable feature flag :glql_work_items.

  2. Embed the following GLQL query in an issue's description:

    ```glql
    display: table
    query: label != "foo"
    fields: title, created, author, assignees, updated, labels, weight, epic
    ```
  3. The query should work as expected (the GLQL view loads).

  4. Inspect the Network tab for an /api/glql request. It should send a call to fetch workItems instead of issues.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Himanshu Kapoor

Merge request reports

Loading