I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Omission #ISSUE-16

Search by new issue-id does not work

Added by daniel wieselwind about 6 years ago. Updated about 6 years ago.

Status:
Open
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

0%

External issue:

Description

Searching for issues with the new issue ID does not work.

History

#1 Updated by daniel wieselwind about 6 years ago

Just to clarify, for example with issue ISSUE-5678 and legacy ID 1234, searching for “5678” or “ISSUE-5678” comes up empty.
Also, when looking for ISSUE-1234, a search for “1234” will redirect to, for example ISSUE-576 (whose legacy id is 1234).

I cannot link is as duplicate of ISSUE-15 here.

#2 Updated by Andriy Lesyuk about 6 years ago

  • Status changed from New to Open
  • Assignee set to Andriy Lesyuk
  • Target version set to 0.0.3

Thanks for reporting the issue.

#3 Updated by Jeongyeol choi about 6 years ago

daniel wieselwind wrote:

Searching for issues with the new issue ID does not work.

Thank you for your plug-in. It’s really cool.
I feel like a little bit inconvinient with this bug.
so, I fixed this issue like following.
I’m using redmine 3.4.6 now. I hope this fix will include version 0.3 soon.
Have a nice day~!

redmine/app/models/issue.rb

line 44~46:
-acts_as_searchable :columns => ['subject', "#{table_name}.description"],
-                     :preload => [:project, :status, :tracker],
-                    :scope => lambda {|options| options[:open_issues] ? self.open : self.all}
+  acts_as_searchable :columns => ['subject', "#{table_name}.description", 'concat(project_key, '-', issue_number)'],
+                     :preload => [:project, :status, :tracker],
+                     :scope => lambda {|options| options[:open_issues] ? self.open : self.all}

Also available in: Atom PDF

Terms of use | Privacy policy