プロジェクト

全般

プロフィール

Question #1358

It shows error when I use "fixed_version_id" ?

sam xuほぼ3年前に追加. 2年以上前に更新.

ステータス:
終了(Closed)
優先度:
通常(Normal)
カテゴリ:
-
対象バージョン:
開始日:
2014/11/28
期日:
進捗率:

100%

予定工数:

説明

Hello.
I want to select issues by version.
But it looks doesn't work when i add the "fixed_version_id" filter in the command.
Here is the error,thanks for help!

Capture.PNG (7.79 KB) Capture.PNG sam xu, 2014/11/28 17:26
Capture1.PNG (3.14 KB) Capture1.PNG sam xu, 2014/11/28 17:30
520
521

関連するチケット

次のチケットが重複 Wiki Lists - Defect #1375: category_id not available as filter終了(Closed)2015-04-14

関係しているリビジョン

リビジョン 02a5329d (差分)
Tomohisa Kusukawa が2年以上前に追加

fixes #1358 add available_filters: fixed_version_id, category_id

履歴

#1 Tomohisa Kusukawaほぼ3年前に更新

  • ステータス新規(New) から フィードバック(Reopend) に変更
  • 担当者sam xu にセット

Hi sam

Thank you for interested in my plugin.
and I'm sorry for inconvenient.

I'm not sure the reason,
issue's filter dose not have 'fixed_version_id',
but custom query has 'fixed_version_id'.

So it will be available in that you create a custom query and use it, maybe.

{{ref_issues(-p=heos-1,-i=123,-f:fixed_version_id=551)}}

123 is custum query ID.

#2 Robert Roth2年以上前に更新

Tomohisa Kusukawa は書きました:

Hi sam

Thank you for interested in my plugin.
and I'm sorry for inconvenient.

I'm also interested in the plugin, we're using it a lot as a replacement for Trac TicketQueries, and it works fine, thanks for creating it.

I'm not sure the reason,
issue's filter dose not have 'fixed_version_id',
but custom query has 'fixed_version_id'.

The reason seems to me that in redmine app/models/issue_query.rb:initialize_available_filters adds both category_id (see issue #1375) and fixed_version_id as type:list_optional, and not as :text or :date* like the other filters which become available as filters using the macro for filtering.
I have locally added "@query.available_filters["fixed_version_id"] = { :type => :text};" to plugins/redmine_wiki_lists/lib/ref_issues/parser.rb after the other available_filters (description and subjectdescription) are defined, and I can now filter by fixed_version_id (although it'd be great to have this officially released). Doing the same for category_id too might fix #1375.

#3 Matthias Reinhardt2年以上前に更新

Great! Adding category_id solves our problem.
So +1 for including the fix in the plugin.

#4 Tomohisa Kusukawa2年以上前に更新

  • 次のチケットが重複 Defect #1375: category_id not available as filter を追加

#5 Tomohisa Kusukawa2年以上前に更新

  • ステータスフィードバック(Reopend) から 解決(Resolved) に変更
  • 進捗率0 から 100 に変更

更新履歴 commit:18753d703e7e で適用されました。

#6 Tomohisa Kusukawa2年以上前に更新

  • ステータス解決(Resolved) から 終了(Closed) に変更
  • 担当者sam xu から Tomohisa Kusukawa に変更
  • 対象バージョン0.0.5 にセット

Thank you very much, Robert and Matthias!

I committed your advice in commit:18753d703e7e .

#7 Matthias Reinhardt2年以上前に更新

Can you please release the version 0.0.5 with this fix on bitbucket?
Maybe you also can do https://bitbucket.org/tkusukawa/redmine_wiki_lists/pull-request/2/changed-text-to-int-for-category_id-and before :)

#8 Tomohisa Kusukawa2年以上前に更新

released 0.0.5

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