Dynamic overridden time range based on panel metrics?

Hi all, I’m working on a project that pulls data from my team’s Jira instance using the SimpleJson plugin and plots said data as graphs in Grafana.

I was wondering if it’s possible to dynamically set the time range override for a panel based on the metrics (assuming there is only one series for the panel)? For example, if plotting data1, then Override relative time should be now-1y. If data2, Override relative time should be now-30d. Can I make that change in time range occur programmatically or do I need to set the override manually for each panel? I did start looking into scripted dashboards which might be what I need, just thought I’d ask first.

Using Grafana v5.2.4