# Scripted Field URL

**URL:** <https://discuss.elastic.co/t/scripted-field-url/256360>\
**Category:** Elasticsearch\
**Tags:** painless\
**Created:** [November 23, 2020, 1:34pm UTC](https://discuss.elastic.co/t/scripted-field-url/256360 "2020-11-23T13:34:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagabhushan.tr](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nagabhushan.tr](https://discuss.elastic.co/u/nagabhushan.tr)\
**Post date:** [November 23, 2020, 1:34pm UTC](https://discuss.elastic.co/t/scripted-field-url/256360/1 "2020-11-23T13:34:26Z")

</div>

I have a scripted field (URL type) which i use to navigate to APM on kibana from a dashboard. Is there a way i can capture time range from dashboard and pass it to scripted field, so when i navigate to APM, selected dashboard range is passed

Below is the URL generated by scripted field, time range of now-15m to now is default value generated. I want that value to be from discover/dashboard.

Selected dashboard from UI.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/5/3514395c13291b6f15c551acacd17089575e4075.png)

[http://localhost:5601/app/apm/services/some-service/transactions/view?transactionName=someTransaction%23listenSomeQueue&transactionType=request&flyoutDetailTab=&waterfallItemId=&rangeFrom=now-15m&rangeTo=now](http://localhost:5601/app/apm/services/some-service/transactions/view?transactionName=someTransaction%23listenSomeQueue&transactionType=request&flyoutDetailTab=&waterfallItemId=&rangeFrom=now-15m&rangeTo=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 21, 2020, 1:34pm UTC](https://discuss.elastic.co/t/scripted-field-url/256360/2 "2020-12-21T13:34:30Z")

</div>

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