Skip to content

Get data about linked tours #560

Description

@solenuk

As an Org or Admin I want to see which tours a task is linked to on its detail page so that I know where a task is already being used before I edit or delete it.

Assumptions & Constraints

  • Uses the existing GET /tasks/{taskId}/linked-tours endpoint, which returns each linked tour's id, title, description, location and execution status.
  • Shown as a new section on the task detail page, alongside title, description, and files, not a separate page.
  • Whether each tour in the list is clickable, linking through to that tour's page, isn't required here.

Preconditions

  1. GET /tasks/{taskId}/linked-tours already exists.
  2. The task detail page already exists.

Business rules

  1. The section shows every tour returned by the endpoint, each with its title, description, location and execution status.
  2. When a task has no linked tours, the section shows a clear message instead of an empty list.
  3. This section is read only, it doesn't offer any way to link or unlink a tour from here.

Acceptance Criteria

  • The task detail page shows a linked tours section.
  • A task with no linked tours shows "Not linked to any tour yet." instead of an empty section.
  • The section loads its data from GET /tasks/{taskId}/linked-tours when the detail page opens.

Out of scope

  • Linking or unlinking a task from a tour, that's handled elsewhere.
  • Making the tour title clickable.
  • Showing assignment specific data, like visibility or requirements, for each tour.

Epic link
Epic #511 - EPIC: Tasks

Tasks

  • Add the linked tours section to the task detail page.
  • Call GET /tasks/{taskId}/linked-tours when the page loads.
  • Show the "Not linked to any tour yet." message when the list is empty.

Metadata

Metadata

Assignees

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions