"Template variables are not supported in alert queries" while setting up Alert

I meet this problem too. I have a main-table-panel, and when i click the item in this table, it will jump into child dashboard, with url “var-item_name=value”. Then, i can not set alert in child dashboard. Because i use variable in my dashboard. What is the best best practice to achieve this goal…