summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/external_issue.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/external_issue.rb b/app/models/external_issue.rb
index 2ca79df0a29..92f1f174941 100644
--- a/app/models/external_issue.rb
+++ b/app/models/external_issue.rb
@@ -34,7 +34,15 @@ class ExternalIssue
%r{(?<issue>\b([A-Z][A-Z0-9_]+-)\d+)}
end
+ def self.reference_prefix
+ '#'
+ end
+
def to_reference(_from_project = nil)
id
end
+
+ def reference_link_text(from_project = nil)
+ "#{self.class.reference_prefix}#{id}"
+ end
end