Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I'm trying to create an issue using the REST API. I've looked through several examples and videos and cannot find what I could be doing wrong. I keep recieving a 400 Bad Request error...
I'm running the following method:
http://localnet:8080/rest/api/2/issue/
This is my code:
{
"fields": {
"project": {
"key": "TP"
},
"summary": "TEST API",
"description": "Test Description",
"issuetype": {
"name": "Task"
}
}
}
This is what I recieve back:
{
"errorMessages": [],
"errors": {
"project": "project is required"
}
}
Community moderators have prevented the ability to post new answers.
Hey all,
In order to make sure the Community sees additional questions you might have about errors like this (which may have varying causes), please ask a new question here on the Community so we can help you individually and ensure that your question is viewed by users actively looking to answer new questions.
You can use this link to quickly ask a new Jira question.
Cheers,
Daniel | Atlassian Staff
I'll provide source code later, however, please see what I've done here : https://stackoverflow.com/a/59981597/1551368
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.
Your JSON looks ok, so I suspect that either project TP does not exist or the user you are logging in with does not have permission to create issues in it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am seeing the same issue. My json is find and I have a valid project key but still shows me the same error. What are all of the possible reasons for this error?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavani, am facing the same issue as well, did you figure it out what was causing the issue? If so please let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I also facing the same problem please let me know how to resolve this problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.