Add set_parent quick action for work items
What does this MR do and why?
Add /set_parent #work_item_reference
quick action for work items.
Screenshots or screen recordings
Screen_Recording_2023-09-27_at_14.33.20
How to set up and validate locally
- Enable the feature flag
:mvc_okrs
- In the rails console, create two work items:
project, user = Project.first, User.first
WorkItem.create!(title: 'key result 1', author: user, project: project, work_item_type_id: key_result_type_id, issue_type: :key_result)
WorkItem.create!(title: 'key result 2', author: user, project: project, work_item_type_id: key_result_type_id, issue_type: :key_result)
- Visit the first work item using the work items view, for example:
http://127.0.0.1:3000/group/project3/-/work_items/1
. - Test the quick action in a new comment, or by editing the description:
/set_parent #2
- Confirm that the second work item is set as the parent to the first one.
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 #420798 (closed)
Edited by Joseph Wambua