Reload on type change to incident & add promote_to_incident quickaction
What does this MR do and why?
Contributes to Ensure incidents and Service Desk issues use le... (#502823 - closed)
Solves Ensure /type incident reloads the page (#512031 - closed)
Solves Support /promote_to_incident on (issue) work items (#512032 - closed)
Reload on type change to incident & add promote_to_incident quickaction
Incidents haven't been migrated to work items yet and so when we change the type to incident we want the page to reload. This will render the legacy incidents view and ensure everything is working correctly.
When the issue drawer feature flag is enabled we make sure we browse to the legacy incident detail page.
Additionally we make the /promote_to_incident quick action available for supported work items.
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
From the detail view only
| Before | After |
|---|---|
| Screen_Recording_2025-02-04_at_16.33.23 | Screen_Recording_2025-02-04_at_15.22.09 |
From the list view with drawer feature flag enabled
| Before | After |
|---|---|
| Screen_Recording_2025-02-04_at_17.20.24 | Screen_Recording_2025-02-04_at_17.12.53 |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable the feature flag
work_items_view_preferenceso you see the "new issue look" badge in the issue list. - Enable the
New issue lookby selecting the badge in the issue list and enabling the toggle. - Create an issue
- You should see the work items detail view rendering (not in the drawer, but full page view)
- Try the following quick actions in a comment and see that a) the type changes to incident and b) the frontend performs a full page reload and then renders the legacy incidents detail view.
- After each quick action execution (in the legacy incidents detail view), select
Editand select the typeIssueagain. The page reloads and renders the work items view again. /type Incident/promote_to Incident-
/promote_to_incident(added with this MR for work items) - You can also test using the quick action with some other text, the reload still happens. Or use
/type Taskto check that it doesn't happen for other types.
- After each quick action execution (in the legacy incidents detail view), select
- Then enable the feature flag
issues_list_drawerand browse to the issues list view. - Select the issue under test and see it opens in the drawer view.
- Now add the same quick actions to a comment and see that you'll be taken to the legacy detail view.
- Change the type back to issue, browse back to the issue list and do it again for the remaining quick actions.