Add `Move` button to Work Items (Issue type) detailed view
What does this MR do and why?
Add move button to the work item detailed page action menu. For now, we are doing legacy parity, so we only display the button for Issue type and if the user is allowed to move the work item.
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.
- BE MR (blocking): !180057 (merged)
- Design: #339766[Move.png]
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.
| Before | After |
|---|---|
| No move button | ![]() |
Screen_Recording_2025-02-04_at_11.30.40_AM
| UI behaviors | Image |
|---|---|
| Modal when opened | ![]() |
| Project selected - WI with no children | ![]() |
| Project selected - WI with children or not able to fetch children | ![]() |
| No project found | ![]() |
| Error moving alert | ![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Open an
Issuework item type - Click on the header action menu
If you are allowed to move this issue (userPermissions.canMove: true / Planner+):
- expect to see the
Movebutton - expect that when clicking on it, a modal appears and looks like the design
- expect that the
Movebutton is initially disabled and only enabled when a project is selected - expect that modal says
Movein the title andProjectabove the dropdown (please ignore some images as they don't reflect new changes)
- Open the dropdown
- expect to see a list of projects that you have at least
Plannerrole orNo project foundif you don't have projects - If an error when fetching projects occurs, expect to see
Failed to load projectsin the dropdown
- Try searching for a project name
- expect that the search works as expected
- Select a project
- expect that the project namespace path appears under the dropdown
- If the issue has children or an error happened to fetch it, expect that the warning
All child items will also be moved to the selected location.appears under the path - If the issue does not have children, no children warning should appear
-
If moving was successful: expect that clicking
Movecloses the modal and redirects to the new issue page in the selected project (/issues/:id)
- expect that the child items from the issue also closed and moved to the new project
-
If moving has errors: expect that the modal stays open and an alert on top appears with the message
Could not be moved. Select another project or try again.
- expect that closing the modal, clicking on alert close button, or clicking on dropdown again closes the alert
Note: You should be able to move closed issues too, if you have access (I'm checking with BE why I am getting errors locally)
If you are not allowed to move this issue or you open another work item type:
- expect to NOT see the
Movebutton on the menu
Related to #514612 (closed)





