# Drilldowns using scripted fields to preserve timestamps

**URL:** https://discuss.elastic.co/t/drilldowns-using-scripted-fields-to-preserve-timestamps/242339
**Category:** Kibana
**Created:** [July 23, 2020, 12:40pm UTC](https://discuss.elastic.co/t/drilldowns-using-scripted-fields-to-preserve-timestamps/242339 "2020-07-23T12:40:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kilianten](https://avatars.discourse-cdn.com/v4/letter/k/bbce88/32.png) [@kilianten](https://discuss.elastic.co/u/kilianten)
#### Post date: [July 23, 2020, 12:40pm UTC](https://discuss.elastic.co/t/drilldowns-using-scripted-fields-to-preserve-timestamps/242339/1 "2020-07-23T12:40:10Z")

</div>

Hey, Im currently using 7.2 Kibana  
I'd like to be able to preserve the timestamp when using drilldowns in scripted fields.  
For example, if I'm looking at a dashboard with the timerange 30d-Now to now, I'd like to be able to drill down and still have the timerange 30d-Now on the new dashabord.  
I've seen this being raised before but couldn't find any status on it currently.  
Thanks,  
Kilian

---

<div class="post-metadata">

### Author: ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)
#### Post date: [July 24, 2020, 9:17pm UTC](https://discuss.elastic.co/t/drilldowns-using-scripted-fields-to-preserve-timestamps/242339/2 "2020-07-24T21:17:37Z")

</div>

Hey @kilianten, Unfortunately I'm not sure if there's a way to preserve dashboard dates in a URL via scripted fields, as those are run against each document and don't necessarily know anything about the current dashboard state.

However, we [added support for dashboard-to-dashboard drilldowns in 7.8](https://www.elastic.co/fr/blog/kibana-7-8-0-released) which provides an easy way to do what you describe.

---

<div class="post-metadata">

### Author: ![kilianten](https://avatars.discourse-cdn.com/v4/letter/k/bbce88/32.png) [@kilianten](https://discuss.elastic.co/u/kilianten)
#### Post date: [July 28, 2020, 9:31am UTC](https://discuss.elastic.co/t/drilldowns-using-scripted-fields-to-preserve-timestamps/242339/3 "2020-07-28T09:31:25Z")

</div>

Hey Luke, I'll upgrade and see how it goes, thanks for the information

---

<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: [August 25, 2020, 9:31am UTC](https://discuss.elastic.co/t/drilldowns-using-scripted-fields-to-preserve-timestamps/242339/4 "2020-08-25T09:31:28Z")

</div>

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