Open morashwan opened 7 hours ago
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)
I checked this issue briefly, and it seems the logs explorer locator (which uses the discover locator behind the scenes) does not have the option to specify spaceId. I am checking with @elastic/kibana-data-discovery team to see how to add that option.
It is worth mentioning that spaceId is needed to be specified on the server side during rule execution. We use the same locator on the alert details page, and it works as expected (meaning it will stay in the same space when clicking on the "open in Discover" link)
Kibana version: 8.15.4, 8.16
Elasticsearch version: 8.15.4, 8.16
Describe the bug: The Custom Threshold Rule provides in the action variables multiple urls to access the results and alerts. The
viewInAppUrl
does not add the Kibana space to the url -> User is routed to Default space, which limit any multi-space Kibana to use this feature. Other urls likealertDetailsUrl
are behaving like expected with Kibana space in the url. The json below shows (skipped the irrelevant fields) the url behaviorSteps to reproduce:
{{context.viewInAppUrl}}
Expected behavior: Url routes to the Space where the Rule is created and not Default Space
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context: