Skip to content

Validate Work Items while adding them to parent

What does this MR do and why?

Validates selected Work Items while adding them to parent as a confidential parent cannot have non-confidential children. Also note that error message will point out only invalid Work Items in case some of the selected Work Items are still valid, thus making it easier for user to fix it.

Screenshots or screen recordings

Only invalid items are pointed out in error message, in case some of the selected items are still valid.

Confidential Issue Confidential Objective
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Visit any project issue that's public.
  2. Try adding an existing child task from Add dropdown button.
  3. If the parent Issue is non-confidential, you can add any child task regardless of its confidentiality. However, if a parent Issue is confidential, child tasks also need to be confidential before they can be added. This will be reflected in the validation error message as shown in screenshots.

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

Edited by Kushal Pandya

Merge request reports