# Custom URL field with Painless that points to a different Dashboard

**URL:** <https://discuss.elastic.co/t/custom-url-field-with-painless-that-points-to-a-different-dashboard/108151>\
**Category:** Kibana\
**Created:** [November 17, 2017, 2:55pm UTC](https://discuss.elastic.co/t/custom-url-field-with-painless-that-points-to-a-different-dashboard/108151 "2017-11-17T14:55:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elvarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elvarb/32/44840_2.png) [@elvarb](https://discuss.elastic.co/u/elvarb)\
**Post date:** [November 17, 2017, 2:55pm UTC](https://discuss.elastic.co/t/custom-url-field-with-painless-that-points-to-a-different-dashboard/108151/1 "2017-11-17T14:55:25Z")

</div>

I have the URL set up with the correct filter so clicking on the link goes to the other Dashboard with the field value as a filter.

The issue is that if I am viewing the original dashboard where the custom field is shown and that dashboard has a timerange of now to -7d, when clicking the link the other dashboard loads with the default timerange of now to -15m.

I could add the time in the URL but then I would have to define a static time range, would it not be possible using painless to read the current timerange?

---

<div class="post-metadata">

**Author:** ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)\
**Post date:** [November 17, 2017, 5:02pm UTC](https://discuss.elastic.co/t/custom-url-field-with-painless-that-points-to-a-different-dashboard/108151/2 "2017-11-17T17:02:40Z")

</div>

Hi @elvarb,

We don't have anything like this, but I think it's a good idea!

I made an issue: [https://github.com/elastic/kibana/issues/15030](https://github.com/elastic/kibana/issues/15030)

Please follow that for updates, or feel free to tackle it yourself too!

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![elvarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elvarb/32/44840_2.png) [@elvarb](https://discuss.elastic.co/u/elvarb)\
**Post date:** [November 17, 2017, 6:26pm UTC](https://discuss.elastic.co/t/custom-url-field-with-painless-that-points-to-a-different-dashboard/108151/3 "2017-11-17T18:26:20Z")

</div>

Thanks, will make a static time range for now.

---

<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:** [December 15, 2017, 6:26pm UTC](https://discuss.elastic.co/t/custom-url-field-with-painless-that-points-to-a-different-dashboard/108151/4 "2017-12-15T18:26:23Z")

</div>

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