Data links in Stat panel with __data.fields

Hello everyone,

  • What Grafana version and what operating system are you using?

Grafana v8.5.2 in Docker Container

  • What are you trying to achieve?

I want to have a Data link on the Stat Panel, with some data from the query

  • How are you trying to achieve it?

https://example.com?foo=${__data.fields.foo} .

  • What happened?

I was able to select the data field in the Data Link dialog, but later it does not get substituted in the URL when I click or hover on the stat panel.

  • What did you expect to happen?

The variable gets substituted like in the table panel.

Has anyone tested this and can confirm the behaviour?
I would then raise a git issue about this problem.

Can confirm this is still happening, tested with Azure Managed Grafana version 9.5.15

Data links (on Stat panels) using data fields still broken in v10.3.1, works when using table panel.