diff --git a/app/models/changeset.rb b/app/models/changeset.rb
index 9ee758128..cc92217e5 100644
--- a/app/models/changeset.rb
+++ b/app/models/changeset.rb
@@ -136,7 +136,7 @@ class Changeset < ActiveRecord::Base
     regexp =
       %r{
         ([\s\(\[,-]|^)((#{kw_regexp})[\s:]+)?
-        (\#\d+(\s+@#{TIMELOG_RE})?([\s,;&]+\#\d+(\s+@#{TIMELOG_RE})?)*)
+        (OS\#\d+(\s+@#{TIMELOG_RE})?([\s,;&]+\#\d+(\s+@#{TIMELOG_RE})?)*)
         (?=[[:punct:]]|\s|<|$)
       }xi
     comments.scan(regexp) do |match|
@@ -144,7 +144,7 @@ class Changeset < ActiveRecord::Base
       refs   = match[3]
       next unless action.present? || ref_keywords_any
 
-      refs.scan(/#(\d+)(\s+@#{TIMELOG_RE})?/o).each do |m|
+      refs.scan(/OS#(\d+)(\s+@#{TIMELOG_RE})?/o).each do |m|
         issue = find_referenced_issue_by_id(m[0].to_i)
         hours = m[2]
         if issue && !issue_linked_to_same_commit?(issue)
