プロジェクト

全般

プロフィール

Vote #79031

完了

If version is closed or locked subtasks don't get copied

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
2
version_id:
141
issue_org_id:
27863
author_id:
127860
assigned_to_id:
332
comments:
9
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
131
ステータス-->[Closed]

説明

Hi,
if I tryed to copy an issue with subtasks only the parent task is copied if the source version is closed or locked.
Regards
Alessandro


journals

Confirmed.
In the log:
<pre>
Could not copy subtask #70 while copying #71 to #74 due to validation errors: Target version is not included in the list
</pre>

I don't know what expected behaviour should be.
--------------------------------------------------------------------------------
Hi,
for me all children issues must be copied independently from the state of the version, not only the parent task.s

Regards
Alessandro

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

--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> Confirmed.
> I don't know what expected behaviour should be.

Considering that the target version is cleared in the UI when you copy an issue with a locked/closed target version, I think we should keep the same behaviour also for subtasks and automatically clear the target version if it is locked/closed. Any other opinions?
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> Toshi MARUYAMA wrote:
> > Confirmed.
> > I don't know what expected behaviour should be.
>
> Considering that the target version is cleared in the UI when you copy an issue with a locked/closed target version, I think we should keep the same behaviour also for subtasks and automatically clear the target version if it is locked/closed. Any other opinions?

Ok clear the target version if it is locked/closed, but most important that get copied.
Alessandro

--------------------------------------------------------------------------------
Attached is a small patch that fixes this issue.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
The patch submitted by Marius works fine. Setting target version to 3.4.6.
--------------------------------------------------------------------------------
Committed. Thank you all for your contribution.
--------------------------------------------------------------------------------


related_issues

relates,Closed,28765,Copying an issue fails if the issue is watched by a locked user
copied_to,Closed,28946,If assignee is locked subtasks don't get copied

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン3.4.6_141 にセット

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

いいね!0
いいね!0