s_("JiraService|You need to configure Jira before enabling this integration. For more details, read the %{jira_doc_link_start}Jira integration documentation%{link_end}.")%{jira_doc_link_start: jira_doc_link_start,link_end: '</a>'.html_safe}
end
deftitle
'Jira'
end
defdescription
s_("JiraService|Use Jira as this project's issue tracker.")
end
defself.to_param
'jira'
end
deffields
[
{
type: 'text',
name: 'url',
title: s_('JiraService|Web URL'),
placeholder: 'https://jira.example.com',
help: s_('JiraService|Base URL of the Jira instance.'),
required: true
},
{
type: 'text',
name: 'api_url',
title: s_('JiraService|Jira API URL'),
help: s_('JiraService|If different from Web URL.')
},
{
type: 'text',
name: 'username',
title: s_('JiraService|Username or Email'),
help: s_('JiraService|Use a username for server version and an email for cloud version.'),
required: true
},
{
type: 'password',
name: 'password',
title: s_('JiraService|Password or API token'),
non_empty_password_title: s_('JiraService|Enter new password or API token'),
non_empty_password_help: s_('JiraService|Leave blank to use your current password or API token.'),
help: s_('JiraService|Use a password for server version and an API token for cloud version.'),
required: true
}
]
end
defissues_url
"#{url}/browse/:id"
end
defnew_issue_url
"#{url}/secure/CreateIssue!default.jspa"
end
alias_method:original_url,:url
defurl
original_url&.delete_suffix('/')
end
alias_method:original_api_url,:api_url
defapi_url
original_api_url&.delete_suffix('/')
end
defexecute(push)
# This method is a no-op, because currently Integrations::Jira does not
s_("JiraService|You need to configure Jira before enabling this integration. For more details, read the %{jira_doc_link_start}Jira integration documentation%{link_end}.")%{jira_doc_link_start: jira_doc_link_start,link_end: '</a>'.html_safe}
end
deftitle
'Jira'
end
defdescription
s_("JiraService|Use Jira as this project's issue tracker.")
end
defself.to_param
'jira'
end
deffields
[
{
type: 'text',
name: 'url',
title: s_('JiraService|Web URL'),
placeholder: 'https://jira.example.com',
help: s_('JiraService|Base URL of the Jira instance.'),
required: true
},
{
type: 'text',
name: 'api_url',
title: s_('JiraService|Jira API URL'),
help: s_('JiraService|If different from Web URL.')
},
{
type: 'text',
name: 'username',
title: s_('JiraService|Username or Email'),
help: s_('JiraService|Use a username for server version and an email for cloud version.'),
required: true
},
{
type: 'password',
name: 'password',
title: s_('JiraService|Password or API token'),
non_empty_password_title: s_('JiraService|Enter new password or API token'),
non_empty_password_help: s_('JiraService|Leave blank to use your current password or API token.'),
help: s_('JiraService|Use a password for server version and an API token for cloud version.'),
required: true
}
]
end
defissues_url
"#{url}/browse/:id"
end
defnew_issue_url
"#{url}/secure/CreateIssue!default.jspa"
end
alias_method:original_url,:url
defurl
original_url&.delete_suffix('/')
end
alias_method:original_api_url,:api_url
defapi_url
original_api_url&.delete_suffix('/')
end
defexecute(push)
# This method is a no-op, because currently JiraService does not
it{is_expected.toeq(success: true,result: {jira: true},data: {issuetypes: [{description: "A task that needs to be done.",id: "10003",name: "Task"},{description: "Created by Jira Software - do not edit or delete. Issue type for a user story.",id: "10002",name: "Story"},{description: "A problem which impairs or prevents the functions of the product.",id: "10004",name: "Bug"},{description: "Created by Jira Software - do not edit or delete. Issue type for a big user story that needs to be broken down.",id: "10001",name: "Epic"}]})}
msgid "JiraService|IDs must be a list of numbers that can be split with , or ;"
msgstr ""
msgid "JiraService|If different from Web URL."
msgstr ""
...
...
@@ -18677,10 +18680,10 @@ msgstr ""
msgid "JiraService|Jira Issues"
msgstr ""
msgid "JiraService|Jira comments will be created when an issue gets referenced in a commit."
msgid "JiraService|Jira comments are created when an issue is referenced in a commit."
msgstr ""
msgid "JiraService|Jira comments will be created when an issue gets referenced in a merge request."
msgid "JiraService|Jira comments are created when an issue is referenced in a merge request."
msgstr ""
msgid "JiraService|Jira issue type"
...
...
@@ -18770,9 +18773,6 @@ msgstr ""
msgid "JiraService|You need to configure Jira before enabling this integration. For more details, read the %{jira_doc_link_start}Jira integration documentation%{link_end}."
msgstr ""
msgid "JiraService|transition ids can have only numbers which can be split with , or ;"