Skip to content

Add add_child quick action for work items

Joseph Wambua requested to merge 420797_add_child_quick_action into master

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

  1. Enable the feature flag :mvc_okrs
  2. 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)
  1. Visit the first work item using the work items view, for example: http://127.0.0.1:3000/group/project3/-/work_items/1.
  2. Test the quick action in a new comment, or by editing the description: /add_child #2
  3. 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.

Related to #420797 (closed)

Edited by Joseph Wambua

Merge request reports

Loading