[Actions UI] Fixed Jira Api token label. (#107776)

* [Actions UI] Fixed Jira Api token label.

* fixed tests

* fixed username

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Yuliia Naumenko 2021-08-10 17:11:11 -07:00 committed by GitHub
parent e89d069f09
commit 538a6d9288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -16,8 +16,8 @@ Jira connectors have the following configuration properties.
Name:: The name of the connector. The name is used to identify a connector in the **Stack Management** UI connector listing, and in the connector list when configuring an action.
URL:: Jira instance URL.
Project key:: Jira project key.
Email (or username):: The account email (or username) for HTTP Basic authentication.
API token (or password):: Jira API authentication token (or password) for HTTP Basic authentication.
Email:: The account email for HTTP Basic authentication.
API token:: Jira API authentication token for HTTP Basic authentication.
[float]
[[jira-connector-networking-configuration]]

View file

@ -81,7 +81,7 @@ describe('jira connector validation', () => {
},
secrets: {
errors: {
apiToken: ['API token or password is required'],
apiToken: ['API token is required'],
email: [],
},
},

View file

@ -67,28 +67,28 @@ export const JIRA_REENTER_VALUES_LABEL = i18n.translate(
export const JIRA_EMAIL_LABEL = i18n.translate(
'xpack.triggersActionsUI.components.builtinActionTypes.jira.emailTextFieldLabel',
{
defaultMessage: 'Username or email address',
defaultMessage: 'Email address',
}
);
export const JIRA_EMAIL_REQUIRED = i18n.translate(
'xpack.triggersActionsUI.components.builtinActionTypes.jira.requiredEmailTextField',
{
defaultMessage: 'Username or email address is required',
defaultMessage: 'Email address is required',
}
);
export const JIRA_API_TOKEN_LABEL = i18n.translate(
'xpack.triggersActionsUI.components.builtinActionTypes.jira.apiTokenTextFieldLabel',
{
defaultMessage: 'API token or password',
defaultMessage: 'API token',
}
);
export const JIRA_API_TOKEN_REQUIRED = i18n.translate(
'xpack.triggersActionsUI.components.builtinActionTypes.jira.requiredApiTokenTextField',
{
defaultMessage: 'API token or password is required',
defaultMessage: 'API token is required',
}
);