From d08b49f313624923f34c93a0a128fa1efc09aa3f Mon Sep 17 00:00:00 2001 From: Yuliia Naumenko Date: Tue, 10 Aug 2021 19:36:12 -0700 Subject: [PATCH] [Actions UI] Fixed Jira Api token label. (#107776) (#108129) * [Actions UI] Fixed Jira Api token label. * fixed tests * fixed username Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- docs/management/connectors/action-types/jira.asciidoc | 4 ++-- .../components/builtin_action_types/jira/jira.test.tsx | 2 +- .../components/builtin_action_types/jira/translations.ts | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/management/connectors/action-types/jira.asciidoc b/docs/management/connectors/action-types/jira.asciidoc index 368b11225654c..aa6e92f965e82 100644 --- a/docs/management/connectors/action-types/jira.asciidoc +++ b/docs/management/connectors/action-types/jira.asciidoc @@ -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]] diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/jira.test.tsx b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/jira.test.tsx index 857582fa7cdaf..15d87605495fe 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/jira.test.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/jira.test.tsx @@ -81,7 +81,7 @@ describe('jira connector validation', () => { }, secrets: { errors: { - apiToken: ['API token or password is required'], + apiToken: ['API token is required'], email: [], }, }, diff --git a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/translations.ts b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/translations.ts index 5904eb05c31b6..1b9f3e2caa6ef 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/translations.ts +++ b/x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/translations.ts @@ -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', } );