…viceNow (#199989) (#200726)
# Backport
This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Connectors]Possible to open close incident in
ServiceNow (#199989)](#199989)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Georgiana-Andreea
Onoleață","email":"georgiana.onoleata@elastic.co"},"sourceCommit":{"committedDate":"2024-11-19T12:48:30Z","message":"[ResponseOps][Connectors]Possible
to open close incident in ServiceNow (#199989)\n\nCloses
https://github.com/elastic/kibana/issues/184646\r\n\r\n##
Summary\r\n\r\n- updated the code to include additional validation,
ensuring that\r\nupdateIncident({...}) is not called when
incidentToBeClosed object is\r\nempty, this ensured that cases where
getIncident or\r\ngetIncidentByCorrelationId return an empty object are
properly handled.\r\n\r\n- small change in Run connector flyout >
configuration tab: fixed typo,\r\n\"read-only\" instead of
\"readonly\"","sha":"5d77a1a67c5eb243b14ea0613e411cc13ec73406","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.17.0"],"title":"[ResponseOps][Connectors]Possible
to open close incident in
ServiceNow","number":199989,"url":"https://github.com/elastic/kibana/pull/199989","mergeCommit":{"message":"[ResponseOps][Connectors]Possible
to open close incident in ServiceNow (#199989)\n\nCloses
https://github.com/elastic/kibana/issues/184646\r\n\r\n##
Summary\r\n\r\n- updated the code to include additional validation,
ensuring that\r\nupdateIncident({...}) is not called when
incidentToBeClosed object is\r\nempty, this ensured that cases where
getIncident or\r\ngetIncidentByCorrelationId return an empty object are
properly handled.\r\n\r\n- small change in Run connector flyout >
configuration tab: fixed typo,\r\n\"read-only\" instead of
\"readonly\"","sha":"5d77a1a67c5eb243b14ea0613e411cc13ec73406"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199989","number":199989,"mergeCommit":{"message":"[ResponseOps][Connectors]Possible
to open close incident in ServiceNow (#199989)\n\nCloses
https://github.com/elastic/kibana/issues/184646\r\n\r\n##
Summary\r\n\r\n- updated the code to include additional validation,
ensuring that\r\nupdateIncident({...}) is not called when
incidentToBeClosed object is\r\nempty, this ensured that cases where
getIncident or\r\ngetIncidentByCorrelationId return an empty object are
properly handled.\r\n\r\n- small change in Run connector flyout >
configuration tab: fixed typo,\r\n\"read-only\" instead of
\"readonly\"","sha":"5d77a1a67c5eb243b14ea0613e411cc13ec73406"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Georgiana-Andreea Onoleață <georgiana.onoleata@elastic.co>
Closes #184646
Summary
updated the code to include additional validation, ensuring that updateIncident({...}) is not called when incidentToBeClosed object is empty, this ensured that cases where getIncident or getIncidentByCorrelationId return an empty object are properly handled.
small change in Run connector flyout > configuration tab: fixed typo, "read-only" instead of "readonly"