Project

General

Profile

How to search in history issues?

Added by Konstantin Geychenko over 9 years ago

Hi. I need to include history of changes in issues in search. I`m zero in ruby. And google says nothing about this question.
Also I`m find in file acts_as_searchable.rb strings about search in issues notes, and try to change them to search history instead of notes, but it not help:

if !options[:titles_only] && searchable_options[:search_journals]
  r |= fetch_ranks_and_ids(
    search_scope(user, projects, options).
    joins(:journals).
    where("#{Journal.table_name}.private_notes = ? OR (#{Project.allowed_to_condition(user, :view_private_notes)})", false).
    where(search_tokens_condition(["#{Journal.table_name}.notes"], tokens, options[:all_words])),
    options[:limit]
  )
  queries += 1
end