Project

General

Profile

Actions

Feature #44254

open

Allow updating the delay of an existing precedes/follows relation without deleting it

Added by [Agileware]Shun(ji) Nishitani 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Resolution:

Description

Current behavior

Currently, the delay of a precedes/follows relation cannot be modified once the relation is created. To change the delay, users have to delete the relation and recreate it with a new delay value. This is cumbersome and error-prone, especially when many relations are involved, and the deletion/recreation is also recorded in the issue history as two separate events even though the user simply wanted to adjust the delay.

Proposed change

The attached patch allows updating the delay of an existing relation:

  • Adds an update action to IssueRelationsController, available from both the UI and the REST API (PUT /relations/:id). Only the delay can be updated.
    • changing the relation type or the target issue is left out of scope, as it cannot be safely validated without removing the current relation first (circular dependency check). Unknown or non-updatable parameters are ignored.
  • Adds an edit icon to precedes/follows rows in the relations list on the issue view, shown to users with the existing manage_issue_relations permission. Clicking it shows a small inline form to edit the delay, which updates the relations list via Ajax.
  • Updating the delay reschedules the following issue using the existing rescheduling logic, exactly as when a relation is created. Resulting date changes are journalized as usual.

Screenshot

The screenshot below shows the inline form displayed when clicking the edit icon:


Files

No data to display

Actions

Also available in: Atom PDF