# Field ":" syntax errors when executin Script for creating issue in jira software !help me

**URL:** <https://community.postman.com/t/field-syntax-errors-when-executin-script-for-creating-issue-in-jira-software-help-me/46240>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [April 12, 2023, 6:48am UTC](https://community.postman.com/t/field-syntax-errors-when-executin-script-for-creating-issue-in-jira-software-help-me/46240 "2023-04-12T06:48:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![descent-module-meteo](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@descent-module-meteo](https://community.postman.com/u/descent-module-meteo)\
**Post date:** [April 12, 2023, 6:48am UTC](https://community.postman.com/t/field-syntax-errors-when-executin-script-for-creating-issue-in-jira-software-help-me/46240/1 "2023-04-12T06:48:01Z")

</div>

const fetch = require(‘node-fetch’);  
const bodyData =  
'{  
“fields”: {  
“project”: {  
“key”: “mass”  
},  
“summary”:“First Task By Success”,  
“issuetype”:{  
“name”: “Task”  
} }}

ERROR:  
There was an error in evaluating the Pre-request Script:SyntaxError: Unexpected token ‘:’

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [April 12, 2023, 10:13am UTC](https://community.postman.com/t/field-syntax-errors-when-executin-script-for-creating-issue-in-jira-software-help-me/46240/2 "2023-04-12T10:13:55Z")

</div>

Please use the preformatted text option in the editor when pasting code or JSON, so it doesn’t all get aligned to the left making it hard to read.

You just need to remove the single quote from the bodyData.

```auto
const bodyData =
{
    "fields": {
        "project" : {
            "key": "mass"
        },
        "summary":"First Task By Success",
        "issuetype": {
            "name": "Task"
        } 
    }
}

console.log(bodyData);

```

Also, what is this doing as Postman doesn’t have native access to node modules.

```auto
const fetch = require("node-fetch");

```
