Omission #ISSUE-16
Search by new issue-id does not work
0%
Description
Searching for issues with the new issue ID does not work.
History
#1 Updated by daniel wieselwind over 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 over 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 over 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}