[8.12] Display username field of ServiceNow as textbox (#178002) (#178012)

# Backport

This will backport the following commits from `main` to `8.12`:
- [Display username field of ServiceNow as textbox
(#178002)](https://github.com/elastic/kibana/pull/178002)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Chenhui
Wang","email":"54903978+wangch079@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-03-05T14:41:12Z","message":"Display
username field of ServiceNow as textbox (#178002)\n\n##
Summary\r\n\r\nDisplay the `Username` field of native ServiceNow
connector as textbox,\r\ninstead of textarea.\r\n\r\n### For
maintainers\r\n\r\n- [ ] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"6cb73aaec15b230a65d2e17a9d6ef970a1061709","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.12.0","v8.13.0","v8.14.0"],"title":"Display
username field of ServiceNow as
textbox","number":178002,"url":"https://github.com/elastic/kibana/pull/178002","mergeCommit":{"message":"Display
username field of ServiceNow as textbox (#178002)\n\n##
Summary\r\n\r\nDisplay the `Username` field of native ServiceNow
connector as textbox,\r\ninstead of textarea.\r\n\r\n### For
maintainers\r\n\r\n- [ ] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"6cb73aaec15b230a65d2e17a9d6ef970a1061709"}},"sourceBranch":"main","suggestedTargetBranches":["8.12","8.13"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178002","number":178002,"mergeCommit":{"message":"Display
username field of ServiceNow as textbox (#178002)\n\n##
Summary\r\n\r\nDisplay the `Username` field of native ServiceNow
connector as textbox,\r\ninstead of textarea.\r\n\r\n### For
maintainers\r\n\r\n- [ ] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"6cb73aaec15b230a65d2e17a9d6ef970a1061709"}}]}]
BACKPORT-->

Co-authored-by: Chenhui Wang <54903978+wangch079@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-03-05 11:11:24 -05:00 committed by GitHub
parent 22ae4f674c
commit aade97320e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2964,7 +2964,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
username: {
default_value: null,
depends_on: [],
display: DisplayType.TEXTAREA,
display: DisplayType.TEXTBOX,
label: i18n.translate('searchConnectors.nativeConnectors.servicenow.username.label', {
defaultMessage: 'Username',
}),