# Scripted Fields in Annotations \[TSVB\]

**URL:** <https://discuss.elastic.co/t/scripted-fields-in-annotations-tsvb/189782>\
**Category:** Kibana\
**Created:** [July 10, 2019, 1:49pm UTC](https://discuss.elastic.co/t/scripted-fields-in-annotations-tsvb/189782 "2019-07-10T13:49:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterPain](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@PeterPain](https://discuss.elastic.co/u/PeterPain)\
**Post date:** [July 10, 2019, 1:49pm UTC](https://discuss.elastic.co/t/scripted-fields-in-annotations-tsvb/189782/1 "2019-07-10T13:49:05Z")

</div>

Hey there is it possible to display scripted Fields for the annotations in the time series visual builder?  
I created a scripted Field, which works fine, but when adding it to the annotation templates  
with the list of used Fields the annotation i created before disappears.

Thanks for any response.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 10, 2019, 1:55pm UTC](https://discuss.elastic.co/t/scripted-fields-in-annotations-tsvb/189782/2 "2019-07-10T13:55:46Z")

</div>

What version of kibana are using?

Are there any errors in your [browser's console](https://developers.google.com/web/tools/chrome-devtools/console/)?

What does your annotation template look like?

---

<div class="post-metadata">

**Author:** ![PeterPain](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@PeterPain](https://discuss.elastic.co/u/PeterPain)\
**Post date:** [July 10, 2019, 2:04pm UTC](https://discuss.elastic.co/t/scripted-fields-in-annotations-tsvb/189782/3 "2019-07-10T14:04:32Z")

</div>

Hey Nathan im Using Kibana Version 7.0.0  
Yes i have an error in the browser console. I got the following error:

`> :5601/app/kibana#/management/elasticsearch/index_management/indices:372 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-J62bM1oPXEDmfXke'". Either the 'unsafe-inline' keyword, a hash ('sha256-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution.`

these are the Fields i use:

> Störungsart,monitor.ip

"Störungsart" is my scripted field.

Template i am using:

> {{Störungsart}}:{{monitor.ip}}

---

<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 7, 2019, 2:04pm UTC](https://discuss.elastic.co/t/scripted-fields-in-annotations-tsvb/189782/4 "2019-08-07T14:04:41Z")

</div>

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