Add issue tracker integration help text

Changelog: other
parent 8ee3d85f
......@@ -73,9 +73,9 @@ class IssueTrackerService < Service
def fields
[
{ type: 'text', name: 'project_url', title: _('Project URL'), required: true },
{ type: 'text', name: 'issues_url', title: s_('ProjectService|Issue URL'), required: true },
{ type: 'text', name: 'new_issue_url', title: s_('ProjectService|New issue URL'), required: true }
{ type: 'text', name: 'project_url', title: _('Project URL'), help: s_('IssueTracker|The URL to the project in the external issue tracker.'), required: true },
{ type: 'text', name: 'issues_url', title: s_('IssueTracker|Issue URL'), help: s_('IssueTracker|The URL to view an issue in the external issue tracker. Must contain %{colon_id}.') % { colon_id: '<code>:id</code>'.html_safe }, required: true },
{ type: 'text', name: 'new_issue_url', title: s_('IssueTracker|New issue URL'), help: s_('IssueTracker|The URL to create an issue in the external issue tracker.'), required: true }
]
end
......@@ -139,6 +139,7 @@ class IssueTrackerService < Service
Gitlab.config.issues_tracker[to_param]
end
# rubocop: disable CodeReuse/ActiveRecord
def one_issue_tracker
return if template? || instance?
return if project.blank?
......@@ -147,6 +148,7 @@ class IssueTrackerService < Service
errors.add(:base, _('Another issue tracker is already in use. Only one issue tracker service can be active at a time'))
end
end
# rubocop: enable CodeReuse/ActiveRecord
end
IssueTrackerService.prepend_if_ee('EE::IssueTrackerService')
......@@ -33,8 +33,8 @@ class YoutrackService < IssueTrackerService
def fields
[
{ type: 'text', name: 'project_url', title: _('Project URL'), required: true },
{ type: 'text', name: 'issues_url', title: s_('ProjectService|Issue URL'), required: true }
{ type: 'text', name: 'project_url', title: _('Project URL'), help: s_('IssueTracker|The URL to the project in YouTrack.'), required: true },
{ type: 'text', name: 'issues_url', title: s_('ProjectService|Issue URL'), help: s_('IssueTracker|The URL to view an issue in the YouTrack project. Must contain %{colon_id}.') % { colon_id: '<code>:id</code>'.html_safe }, required: true }
]
end
end
---
title: Add issue tracker integrations help text
merge_request: 61158
author:
type: other
......@@ -18147,6 +18147,27 @@ msgstr ""
msgid "IssueTracker|Custom issue tracker"
msgstr ""
msgid "IssueTracker|Issue URL"
msgstr ""
msgid "IssueTracker|New issue URL"
msgstr ""
msgid "IssueTracker|The URL to create an issue in the external issue tracker."
msgstr ""
msgid "IssueTracker|The URL to the project in YouTrack."
msgstr ""
msgid "IssueTracker|The URL to the project in the external issue tracker."
msgstr ""
msgid "IssueTracker|The URL to view an issue in the YouTrack project. Must contain %{colon_id}."
msgstr ""
msgid "IssueTracker|The URL to view an issue in the external issue tracker. Must contain %{colon_id}."
msgstr ""
msgid "IssueTracker|Use Bugzilla as this project's issue tracker."
msgstr ""
......@@ -25273,9 +25294,6 @@ msgstr ""
msgid "ProjectService|Must have permission to trigger a manual build in TeamCity."
msgstr ""
msgid "ProjectService|New issue URL"
msgstr ""
msgid "ProjectService|Perform common operations on GitLab project: %{project_name}"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment