# Time range for url field populated with current dashboard value

**URL:** <https://discuss.elastic.co/t/time-range-for-url-field-populated-with-current-dashboard-value/72971>\
**Category:** Kibana\
**Created:** [January 27, 2017, 4:28am UTC](https://discuss.elastic.co/t/time-range-for-url-field-populated-with-current-dashboard-value/72971 "2017-01-27T04:28:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry\_Schrader](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_schrader/32/11839_2.png) [@Larry\_Schrader](https://discuss.elastic.co/u/Larry_Schrader)\
**Post date:** [January 27, 2017, 4:28am UTC](https://discuss.elastic.co/t/time-range-for-url-field-populated-with-current-dashboard-value/72971/1 "2017-01-27T04:28:17Z")

</div>

I am using a field formatter to create a "drill down" URL for a field that uses the {{value}} as part of the query within the formatted URL. I copy the URL for a dashboard with a place holder query to create the formatted field with a time range of something like now-90m. I would like to somehow be able to use the time range associated with the initial dashboard (which is likely user defined and maybe no where near now -90m) where the user is clicking the link rather than the time specified in the copied URL(now -90m). Is there a value or format for the time statement the formatted field that I can use to accomplish this?

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [January 27, 2017, 1:20pm UTC](https://discuss.elastic.co/t/time-range-for-url-field-populated-with-current-dashboard-value/72971/2 "2017-01-27T13:20:32Z")

</div>

Hi @Larry_Schrader,

that is a very reasonable use-case. Unfortunately there is no way to access the currently selected time in the url formatter. There is an open [request](https://github.com/elastic/kibana/issues/6416) to allow access to all fields of a document in the formatter, which would at least allow to create a URL that sets the time based on the document's timestamp. Please feel free to add your use case to the request.

---

<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:** [February 24, 2017, 1:21pm UTC](https://discuss.elastic.co/t/time-range-for-url-field-populated-with-current-dashboard-value/72971/3 "2017-02-24T13:21:13Z")

</div>

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