Preserve filters and other URL attributes when referencing a dashboard by title #24389
Labels
Feature:Dashboard
Dashboard related features
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
triage_needed
I found #14760 as a solution to use the dashboard title to reference to a dashboard via an URL instead of the id. But the redirect that happens then doesn't preserve any additional attributes. I wish that I could reference a dashboard by its name and can use additional URL attributes like for passing a custom filter.
In my use case I have an app that should reference to a dashboard and pass a custom filter that the app adjusts dynamically.
E.g.:
#/dashboards?title=dashboard-title&_g=(refreshInterval:(pause:!t,value:0),time:(from:'2018-10-22T20:00:00',mode:absolute,to:'2018-10-22T22:00:00'))&_a=(description:'',filters:!(('$state':(store:appState),bool:(should:!((term:(source_ip:'1.2.3.4')),(term:(destination_ip:'1.2.3.4')))),meta:(alias:'src+IP:+1.2.3.4',disabled:!f,negate:!f,type:custom))))
With this URL Kibana redirects me to the correct dashboard but forgets about the filter. :(
Using the ID the query works:
#/dashboard/a4cbadd0-d5ec-11e8-9290-9f77ee81db9b?_g=(refreshInterval:(pause:!t,value:0),time:(from:'2018-10-22T20:00:00',mode:absolute,to:'2018-10-22T22:00:00'))&_a=(description:'',filters:!(('$state':(store:appState),bool:(should:!((term:(source_ip:'1.2.3.4')),(term:(destination_ip:'1.2.3.4')))),meta:(alias:'src+IP:+1.2.3.4',disabled:!f,negate:!f,type:custom))))
PS: I know about the solution of custom dashboard IDs (#15023 (comment)). But that's just a workaround and no solution.
The text was updated successfully, but these errors were encountered: