Question #1358
完了It shows error when I use "fixed_version_id" ?
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!
ファイル
Tomohisa Kusukawa さんが9年以上前に更新
- ステータス を 新規(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.
Robert Roth さんが約9年前に更新
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.
Matthias Reinhardt さんが約9年前に更新
Great! Adding category_id solves our problem.
So +1 for including the fix in the plugin.
Tomohisa Kusukawa さんが約9年前に更新
- 次のチケットが重複 Defect #1375: category_id not available as filter を追加
Tomohisa Kusukawa さんが約9年前に更新
- ステータス を フィードバック(Reopend) から 解決(Resolved) に変更
- 進捗率 を 0 から 100 に変更
更新履歴 commit:18753d703e7e で適用されました。
Tomohisa Kusukawa さんが約9年前に更新
- ステータス を 解決(Resolved) から 終了(Closed) に変更
- 担当者 を sam xu から Tomohisa Kusukawa に変更
- 対象バージョン を 0.0.5 にセット
Thank you very much, Robert and Matthias!
I committed your advice in commit:18753d703e7e .
Matthias Reinhardt さんが約9年前に更新
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