プロジェクト

全般

プロフィール

Vote #75205

未完了

Allow multiple relationships between two issues

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
0
issue_org_id:
16818
author_id:
101188
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

This happens in the current version of redmine from git (svn r13129), with mysql 14.14.

Steps to reproduce:

Create an issue

Create a copy of that issue

Attempt to create a relation between the issues (e.g. set the copy to FOLLOW the original)

An error will occur:

@ActiveRecord::RecordNotUnique (Mysql2::Error: Duplicate entry '31-40' for key 'index_issue_relations_on_issue_from_id_and_issue_to_id': INSERT INTO issue_relations (delay, issue_from_id, issue_to_id, relation_type) VALUES (0, 31, 40, 'precedes')):
app/controllers/issue_relations_controller.rb:48:in `create'@

This index effectively prevents you from creating two relations between the same pair of issues. Shouldn't this combination of relationships be ok?


journals

What you have observed is the current intended behaviour - only one relationship allowed per between any two issues.

This Defect should be closed, or at least turned into a Feature request to allow multiple relationships between two issues.
--------------------------------------------------------------------------------
@ go2null wrote:
> [...] or at least turned into a Feature request to allow multiple relationships between two issues.

Such already exists as #8628 which has some patches too. Initial request is for 'related to' relation but the patches includes a fix for 'copied to/from' relations also.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,8628,"Related to" reference may yield circular dependency error message

Admin Redmine さんが約2年前に更新

  • カテゴリIssues_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0