Expose workItemAllowedStatuses field on QueryType
What does this MR do and why?
This MR introduces a placeholder API for workItemAllowedStatuses that returns the allowed work item statuses from the root groups the current user belongs to.
The actual implementation will be added in a follow-up MR. For now, we want to merge this placeholder before the %18.4 cut-off on Friday to ensure the API is available for frontend integration.
The query will be used by the frontend on the user dashboard issues list to retrieve the available work item statuses for the status filter option (see #560683 (closed)).
The workItemAllowedStatuses field is exposed at the root level (QueryType) because we need access to the current user and all root groups they belong to, in order to return the allowed statuses configured across multiple root namespaces.
References
Screenshots or screen recordings
How to set up and validate locally
- Run the query below to test the new GraphQL field.
query {
workItemAllowedStatuses {
nodes {
id
name
iconName
color
category
}
}
}
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.
