# Reference Error "jira" is not defined

**URL:** <https://community.eazybi.com/t/reference-error-jira-is-not-defined/10722>\
**Category:** Questions & Answers\
**Tags:** javascript\
**Created:** [October 11, 2022, 12:54pm UTC](https://community.eazybi.com/t/reference-error-jira-is-not-defined/10722 "2022-10-11T12:54:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zane.baranovska](https://community.eazybi.com/user_avatar/community.eazybi.com/zane.baranovska/32/7209_2.png) [@zane.baranovska](https://community.eazybi.com/u/zane.baranovska)\
**Post date:** [October 31, 2022, 1:45pm UTC](https://community.eazybi.com/t/reference-error-jira-is-not-defined/10722/2 "2022-10-31T13:45:28Z")

</div>

Hi @Ruth

When testing JavaScript in **import options** tab “Additional options”, paste only the JavaScript code without advanced settings.

```auto
if (issue.fields.summary) {
  issue.customfield_descr = “test”;
}

```

When the code is tested on individual issues, you are ready to create a JavaScript-calculated custom field in **eazyBI advanced settings**. Now add the advanced setting parameters representing custom field identifier (jira.customfield\_descr), name, data type and javascript\_code:

```auto
[jira.customfield_descr]
name = "Description"
data_type = "text"
json_fields = ['description']
javascript_code = '''
if (issue.fields.description) {
  issue.fields.customfield_descr = "test";
}
'''

```

Here are more details on how to test JAvaScript calculated custom fields: [JavaScript calculated custom fields](https://docs.eazybi.com/eazybi/data-import/data-from-jira/jira-custom-fields/javascript-calculated-custom-fields#JavaScriptcalculatedcustomfields-ValidatetheJavascriptcodebeforeusingitinthecustomfielddefinition).

If you are interested in the issue description field, please see the documentation with the example and this Community post:

- Documentation: [JavaScript calculated custom fields - Description for Issues](https://docs.eazybi.com/eazybi/data-import/data-from-jira/jira-custom-fields/javascript-calculated-custom-fields#JavaScriptcalculatedcustomfields-DescriptionforIssues)
- [Import JIRA Issue Description - #2 by zane.baranovska](https://community.eazybi.com/t/import-jira-issue-description/3954/2)

Best,  
Zane / [support@eazyBI.com](mailto:support@eazyBI.com)

---

_[View the full topic](https://community.eazybi.com/t/reference-error-jira-is-not-defined/10722)._
