Project

General

Profile

Question #1358

It shows error when I use "fixed_version_id" ?

Added by sam xu over 4 years ago. Updated about 4 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Category:
-
Target version:
Start date:
11/28/2014
Due date:
% Done:

100%

Estimated time:

Description

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!


Files

Capture.PNG (7.79 KB) Capture.PNG sam xu, 11/28/2014 05:26 PM
Capture1.PNG (3.14 KB) Capture1.PNG sam xu, 11/28/2014 05:30 PM

Related issues

Has duplicate Wiki Lists - Defect #1375: category_id not available as filter終了(Closed)04/14/2015

Actions

Associated revisions

Revision 02a5329d (diff)
Added by Tomohisa Kusukawa about 4 years ago

fixes #1358 add available_filters: fixed_version_id, category_id

History

#1

Updated by Tomohisa Kusukawa over 4 years ago

  • Status changed from 新規(New) to フィードバック(Reopend)
  • Assignee set to 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

Updated by Robert Roth about 4 years ago

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

Updated by Matthias Reinhardt about 4 years ago

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

#4

Updated by Tomohisa Kusukawa about 4 years ago

  • Has duplicate Defect #1375: category_id not available as filter added
#5

Updated by Tomohisa Kusukawa about 4 years ago

  • Status changed from フィードバック(Reopend) to 解決(Resolved)
  • % Done changed from 0 to 100

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

#6

Updated by Tomohisa Kusukawa about 4 years ago

  • Status changed from 解決(Resolved) to 終了(Closed)
  • Assignee changed from sam xu to Tomohisa Kusukawa
  • Target version set to 0.0.5

Thank you very much, Robert and Matthias!

I committed your advice in commit:18753d703e7e .

#7

Updated by Matthias Reinhardt about 4 years ago

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

Updated by Tomohisa Kusukawa about 4 years ago

released 0.0.5

Also available in: Atom PDF