Assigned TODOs are properly created for group level issues
What does this MR do and why?
Issues and Work items can now be created directly associated with a group. TODOs get created when assignees of the Issue/WorkItem are changed. This change fixes the TodoService for group level issues and work items
How to set up and validate locally
- Enable the feature flag in Rails console
Feature.enable(:namespace_level_work_items)
- Create a group level work item with the following query at http://127.0.0.1:3000/-/graphql-explorer so you can use it in the next query
mutation { workItemCreate(input: {namespacePath: "flightjs", title: "test group level work item", workItemTypeId: "gid://gitlab/WorkItems::Type/1"}) { errors workItem { id iid } } }
- Update the assignees on the newly created work item
mutation { workItemUpdate(input:{id: "<id_returned_in_previous_step>", assigneesWidget: {assigneeIds: ["gid://gitlab/User/1"]}}) { errors workItem { id iid widgets { ... on WorkItemWidgetAssignees { assignees { nodes { username id } } } } } } }
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #426471 (closed)
Edited by Mario Celi