I am using the below code for creating a issue in Jira cloud but its not working. I am getting error response as Summary : it is not on the appropriate screen or unknown and same description, assignee, reporter and priority
var bodyData = {
"fields": {
"project": { "key": "TEST" },
"summary": "First Issue",
"description": "Creating First Issue",
"issuetype": { "name": "Bug" },
"assignee": { "name": "Karthikeyan" },
"reporter": { "name": "Karthikeyan" },
"priority": { "name": "Minor" }
} }
var options = {
method: 'POST', url: 'https://domain/rest/api/3/issue',
//auth: { bearer: <access token> },
OAuth1: 'access token',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
}, body: JSON.stringify(bodyData)
};
request(options, function (error, response, body)
{ if (error) throw new Error(error);
console.log('Response: ' + response.statusCode + ' ' + response.statusMessage); console.log(body);
});
Hello @Karthikeyan N and welcome to the community!
Your connection with the Node.JS to Jira seems to be fine, otherwise you would receive a different error.
As the error says "Summary : it is not on the appropriate screen or unknown"
You need to check your screen configuration, make sure that all the fields you mentioned exist in the issue create screen of the issue type you are trying to create.
Thanks for the reply @Nir Haimov
I have checked the screen configuration, the fields which i mentioned it's there in create screen, but still i am unable to create
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.