Add add_child quick action for work items
What does this MR do and why?
Add /add_child #work_item_reference
quick action for work items.
Screenshots or screen recordings
Screen_Recording_2023-10-09_at_22.58.07
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:
/add_child #2
- Confirm that the second work item is set as a child 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 #420797 (closed)
Edited by Joseph Wambua