プロジェクト

全般

プロフィール

Vote #74752

完了

Filtering out specific subprojects (using 'is not' operator)

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

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

0%

予定工数:
category_id:
56
version_id:
119
issue_org_id:
15773
author_id:
68130
assigned_to_id:
1
comments:
6
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

It should be possible to select multiple subproject for which you don't want issues in the list.

That is besides currently existing @is, all, none@ there also needs to be @is not@. This can not be achieved by selecting multiple projects except specific ones with @is@ filter because new subprojects could be added.


journals

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

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

--------------------------------------------------------------------------------
We are interested too in having the "is not" option available for subproject filter. Attached is a patch that implements this.

As a technical note, I changed in the existing implementation the "each(&:to_i)" to "map(&:to_i)" because the each method returns the same initial array (with project ids as strings), while the map method returns a new array (with the project ids casted to integers).
--------------------------------------------------------------------------------
It works fine for me and passed all tests. I think it is natural to have this feature.
Setting target version to 3.4.0.

Thank you for writing this patch so fast.
--------------------------------------------------------------------------------
Committed, thanks Marius.
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,24677,Include in Subproject's filter a option 'is not'

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

  • カテゴリIssues filter_56 にセット
  • 対象バージョン3.4.0_119 にセット

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

いいね!0
いいね!0