{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
defone_issue_tracker
returniftemplate?||instance?
returnifproject.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'))
{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}