# Save time range in link

**URL:** https://discuss.elastic.co/t/save-time-range-in-link/73177
**Category:** Kibana
**Created:** [January 30, 2017, 9:54am UTC](https://discuss.elastic.co/t/save-time-range-in-link/73177 "2017-01-30T09:54:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Akaren](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Akaren](https://discuss.elastic.co/u/Akaren)
#### Post date: [January 30, 2017, 9:54am UTC](https://discuss.elastic.co/t/save-time-range-in-link/73177/1 "2017-01-30T09:54:52Z")

</div>

I made a link in data table with parameter from one dashboard to another through scripted fields -\> translate string to url.

But the time change according my time in link. If I don't set it at all it used some default time.

How can I keep the time range from first dashboard if the link is already created? Or is there any other way?

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [January 30, 2017, 10:35pm UTC](https://discuss.elastic.co/t/save-time-range-in-link/73177/2 "2017-01-30T22:35:09Z")

</div>

If I'm understanding correctly, you have links in a data table that link to a dashboard. Can you show me an example of one of the links you have?

---

<div class="post-metadata">

### Author: ![Akaren](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Akaren](https://discuss.elastic.co/u/Akaren)
#### Post date: [January 31, 2017, 9:35am UTC](https://discuss.elastic.co/t/save-time-range-in-link/73177/3 "2017-01-31T09:35:02Z")

</div>

I took the url link from export and created new script.

Link:  
[http://127.0.0.1:5601/app/kibana#/dashboard/Overview](http://127.0.0.1:5601/app/kibana#/dashboard/Overview)?_g=(refreshInterval:(display:Off,pause:!f,value:0))&a=(filters:!(),options:(darkTheme:!f),panels:!((col:1,id:overview\_events\_over\_time,panelIndex:4,row:1,size\_x:12,size\_y:4,type:visualization),(col:1,id:overview-total\_events\_in\_interval\_sum,panelIndex:7,row:5,size\_x:12,size\_y:4,type:visualization),(col:1,id:overview_-TOP-CALL-ATTEMPTS,panelIndex:8,row:9,size\_x:5,size\_y:5,type:visualization),(col:6,id:overview\_TOP-REG.-EXPIRED,panelIndex:9,row:9,size\_x:5,size\_y:5,type:visualization),(col:1,columns:!(type,attrs.from,[attrs.to](http://attrs.to),attrs.source,attrs.method),id:overview\_table,panelIndex:10,row:14,size\_x:12,size\_y:6,sort:!('@timestamp',desc),type:search)),query:(query\_string:(analyze\_wildcard:!t,query:'attrs.from:{{value}}')),title:Overview,uiState:(P-2:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-3:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-8:(vis:(params:(sort:(columnIndex:!n,direction:!n)))),P-9:(vis:(params:(sort:(columnIndex:!n,direction:!n))))))

I insert value:  
doc['attrs.from'].value;

And in datatable I have column with link for each row for redirection to another dashboard wth filter.  
Now I need to save also time range from previous dashboard.

---

<div class="post-metadata">

### Author: ![Akaren](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@Akaren](https://discuss.elastic.co/u/Akaren)
#### Post date: [February 13, 2017, 10:52am UTC](https://discuss.elastic.co/t/save-time-range-in-link/73177/4 "2017-02-13T10:52:55Z")

</div>

Still having this issue, can you please help me?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 13, 2017, 10:52am UTC](https://discuss.elastic.co/t/save-time-range-in-link/73177/5 "2017-03-13T10:52:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
