Skip to content

Work item create — Pre-populate from origin when creating a child item

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When creating a child item using the Create Work Item UI, attribute fields should be populated based on the originating item. "Attribute fields" encompass anything present in the work item creation sidebar, and do not include title/description.

Attributes are only pre-populated for fields present on the new work item type, e.g. the health status field is present on issues but not tasks, if health status is set on an issue it will not be prepopulated when creating a child task)

Clear

To accommodate users that only want the relationship, and not all the same data, a new "Clear" action should be provided. This will always be present in the work item creation form and is not dependent on creating a child/linked item.

Clear will remove data from all present widgets, except those tied to the form purpose (i.e. clear should not clear the parent when creating a child item, or the related link from a new linked item)

Pre-requisites

Acceptance criteria

  • When opening the work item creation form via 'Add new item' in child items, attribute fields are pre-filled based on the parent
    • Attributes are scoped by work item type (i.e. any field not present in the child type is ignored)
    • Parent is not based on parent as it must be the item from which this is being created
    • Time tracking should never copy over
  • User can click "Clear" to clear all fields including title and description
    • Clear does not remove parent when creating a child item

Design Resources

Edited by 🤖 GitLab Bot 🤖