Skip to content

Commit

Permalink
[Actions UI] Fixed Jira Api token label. (#107776) (#108129)
Browse files Browse the repository at this point in the history
* [Actions UI] Fixed Jira Api token label.

* fixed tests

* fixed username

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
YulNaumenko and kibanamachine authored Aug 11, 2021
1 parent 53d608b commit d08b49f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/management/connectors/action-types/jira.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('jira connector validation', () => {
},
secrets: {
errors: {
apiToken: ['API token or password is required'],
apiToken: ['API token is required'],
email: [],
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
);

Expand Down

0 comments on commit d08b49f

Please sign in to comment.