Skip to content

Copy confidential attribute from parent when creating task

What does this MR do and why?

Related thread in #368035 (comment 1028287354)

The tasks feature is still behind the work_items feature flag. The feature allows you to convert a task list item on an issue's description into a separate work_item/issue using the text in the description as the new title. Currently the created task will never be confidential, even if the parent containing the description is actually confidential.

This is just a first step in an still not finalized conversation, but we know we need this first step for sure.

How to set up and validate locally

  1. Enable the work_items feature flag locally Feature.enable(:work_items)
  2. Create a confidential issue on a project. The description of the project should contain a task list like the following:
    • Task 1
    • Task 2
    • Task 3
  3. Click the button next to any of the tasks in the list to convert the item into a task.
  4. Before this change, the created task will not be confidential, with this change it should also be confidential.
  5. You can check the confidential status of the created task using the Rails console
    WorkItem.last.confidential?

Screen_Recording_2022-07-19_at_12.59.20

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 #368035 (closed)

Edited by Mario Celi

Merge request reports

Loading