Create new issues in status lists
What does this MR do and why?
This MR adds support to pass statusId argument in legacy create issue input where the backend MR is merged in the same milestone.
- Although the change was only made to in the input of the mutation and the query already fetches the status information since 18.1 , its not an issue
- Still , in case the MVC issue occurs where the backend is not deployed and the the input does not support the statusId information , the error would only occur on status lists
- Make sure that the statusId argument is only being sent for status lists
- Do not open the drawer with -1 default iid if error occurs when creating an issue
References
Screenshots or screen recordings
| Use case | Video |
|---|---|
| When there is no MVC issue and we can create issues in any lists | Screen Recording 2025-06-24 at 21.51.00.mov |
| When there is MVC issue , only exists for status lists and drawer is not opened | Screen Recording 2025-06-24 at 21.47.32.mov |
| the statusId argument in the CreateIssueInput is only being sent for status lists to make sure even if the MVC issue occurs only exists for status lists (for 30 mins to 1hour) | Screen Recording 2025-06-24 at 21.52.20.mov |
How to set up and validate locally
- Enable the FF
work_item_status_feature_flag - Go to issue boards and try to create new issues on both status lists and other lists
- See that you are able to create an issue on all lists
- To check how it will behave if the MVC issue occurs , apply the following patch and see that the error only exists for status lists to reduce the blast radius
diff --git a/ee/app/graphql/ee/mutations/issues/create.rb b/ee/app/graphql/ee/mutations/issues/create.rb
index 2e955141df01..356416b4d1f6 100644
--- a/ee/app/graphql/ee/mutations/issues/create.rb
+++ b/ee/app/graphql/ee/mutations/issues/create.rb
@@ -25,10 +25,6 @@ module Create
argument :iteration_cadence_id, ::Types::GlobalIDType[::Iterations::Cadence],
required: false,
description: 'Global iteration cadence ID. Required when `iterationWildcardId` is provided.'
-
- argument :status_id, ::Types::GlobalIDType[::WorkItems::Statuses::Status],
- required: false,
- description: 'Global ID of the status.'
end
override :resolve
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.
Related to #550378 (closed)
Edited by Deepika Guliani