{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
definitialize_properties
{}
end
# Initialize with default properties values
defset_default_data
returnunlessissues_tracker.present?
# we don't want to override if we have set something
s_("IssueTracker|Use YouTrack as this project's issue tracker. %{docs_link}").html_safe%{docs_link: docs_link.html_safe}
end
defself.to_param
'youtrack'
end
deffields
[
{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}
{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
definitialize_properties
{}
end
# Initialize with default properties values
defset_default_data
returnunlessissues_tracker.present?
# we don't want to override if we have set something
s_("IssueTracker|Use YouTrack as this project's issue tracker. %{docs_link}").html_safe%{docs_link: docs_link.html_safe}
end
defself.to_param
'youtrack'
end
deffields
[
{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}