Expose status in issue board list REST API

What does this MR do and why?

Exposes the status_id parameter on the issue board list create endpoints for projects and groups, and returns the bound status in the list response, so status-based board lists can be created and read via the REST API. Previously this was only possible in the UI and via GraphQL (boardListCreate), which blocked automating board configuration with Terraform.

Resolves #557140

References

Screenshots or screen recordings

Not applicable: API-only change, no UI.

How to set up and validate locally

  1. Use a GDK with an Enterprise license (Premium and above); status lists require the board_status_lists license feature.

  2. Create a custom status for the group, or use a system-defined status (ids 1-5).

  3. Create a status list for a group or project board:

    curl --request POST \
      --header "PRIVATE-TOKEN: <your_access_token>" \
      --url "http://127.0.0.1:3000/api/v4/projects/5/boards/1/lists" \
      --data "status_id=1"

    The response includes the status object with id and name, and the new list appears on the board in the UI.

  4. Verify the exact-one-of validation: sending two of label_id/milestone_id/iteration_id/assignee_id/status_id returns 400 and a "mutually exclusive" error.

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.

Merge request reports

Loading
Loading