Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create JIRA Issue with REST API via PowerShell

saurabh August 2, 2019

I am still unable to make a post request for creating an issue in JIRA cloud. i am getting 400 in postman.

https://saurabh123.atlassian.net/rest/api/latest/issue

{
"fields": {
"project":
{
"id": "10000"
},
"summary": "Hi",

"issuetype": {
"name": "Bug"
}
}
}

error is : { "errorMessages": [], "errors": { "summary": "Field 'summary' cannot be set. It is not on the appropriate screen, or unknown." }}

Using basic Authorization with API token as password. Please help 

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 5, 2019

Hello Saurabh,

Thanks for sending over your JSON payload along with your authentication method. The output from your call tells us one of two things possible here. Either the account/token you’re using does not have the proper permissions OR the summary field is not available within the issue creation screen. Most likely it’s an issue with your token not having the proper permissions to create the issue. Please ensure the account you’re using for this call does have the appropriate permissions to the project to create issues.

I hope this information proves helpful and you’re able to start creating Jira issue via the REST API.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events