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

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

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

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.

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


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

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