diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-02-12 17:06:55 -0800 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-02-12 17:06:55 -0800 |
commit | eccf695640680050127c830887631d241dc7c8be (patch) | |
tree | cf1e1b32c129a8930afd6bafa2ccafb1867fb04b /app/models/project_services/jira_service.rb | |
parent | d899bc914f07ce47b5962563467790c25ba52c89 (diff) | |
download | gitlab-ce-eccf695640680050127c830887631d241dc7c8be.tar.gz |
Explained in the integration documentation how to enable external issue tracker
Diffstat (limited to 'app/models/project_services/jira_service.rb')
-rw-r--r-- | app/models/project_services/jira_service.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/models/project_services/jira_service.rb b/app/models/project_services/jira_service.rb index a159c287485..4c056605ea8 100644 --- a/app/models/project_services/jira_service.rb +++ b/app/models/project_services/jira_service.rb @@ -14,9 +14,23 @@ # class JiraService < IssueTrackerService + include Rails.application.routes.url_helpers prop_accessor :title, :description, :project_url, :issues_url, :new_issue_url + def help + issue_tracker_link = help_page_path("integration", "external-issue-tracker") + + line1 = "Setting `project_url`, `issues_url` and `new_issue_url` will "\ + "allow a user to easily navigate to the Jira issue tracker. "\ + "See the [integration doc](#{issue_tracker_link}) for details." + + line2 = 'Support for referencing commits and automatic closing of Jira issues directly ' \ + 'from GitLab is [available in GitLab EE.](http://doc.gitlab.com/ee/integration/jira.html)' + + [line1, line2].join("\n\n") + end + def title if self.properties && self.properties['title'].present? self.properties['title'] |