FE: Create new related work item at project level

Description

In !167936 (merged), we added the ability to create new related Epics when viewing an Epic via the 'actions menu' in the top right of the page. This opens a modal for you to enter the details of the new Epic, and creates it when submitted.

We also need to allow adding new related project-level work items when viewing a project-level work item (eg. creating a related issue when viewing an issue). We could allow creating related Epics or other group-level work items when viewing a project-level work item in a future iteration, but that may be best left until we have better support for more group-level work items.

This should be a frontend only task.

Requirements

  • must only be able to create project-level work items (currently everything other than an Epic) when viewing a project-level work item.
  • must be able to select the project in which the new related work item should exist.

Designs

Design Reference

Instrumentation

TBC

Docs

Should roughly be feature parity with legacy behaviour, other than the modal view and toast. Perhaps we should update this section of the 'create issues' page?

Testing/Verification

  1. Visit an issue using work item view (Issue A)
  2. Click 'New related item' in the actions menu
  3. Ensure you can only select project-level work items in the modal
  4. Ensure you can select a project in the modal
  5. Ensure the newly created work item is related to Issue A
  6. Ensure the 'Linked items' section updates on Issue A without needing to refresh the page
Edited by Jack Chapman