I setup a free cloud account that I'm trying to use to learn Jira's REST API. I have not modified any of the Jira settings and I'm trying to create my first test issue by POST'ing the following to https://valhala.atlassian.net/rest/api/2/issue:
{
"fields":{
"project":{"id":"10000"},
"summary":"Bot bug report on behalf of some name: some email",
"issuetype":{"id":"10001"}
}
}
I keep getting 400 error and no response text explaining why. My headers are:
Accept: application/json
Content-Type: application/json
Authorization: Basic base64encoded_email:token
I'm at my wits end. Please help. Thank you.
Hi @Dane.Foster ,
welcome to the Atlassian community!
Please look at the documentation for Jira cloud - create issue section.
The correct url is: https://valhala.atlassian.net/rest/api/3/issue
Provided payload seems correct to me, but please check all the ids, if they are valid for your projects and issue types.
I would recommend you to use Postman application - it enables you to debug the requests and you should be able to get the error message to find out, where the problem is.
That did the trick. Thank you sooooo MUCH! I REALLY appreciate it! You da bomb!
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.
Hi,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dane.Foster @Hana Kučerová currently i am trying to use https://inhomeengineering.atlassian.net/rest/api/3/issue with payload
postBody2 => {
fields: {
project: { id: 10004 },
summary: 'ARRIS_MV1_TEST_SET_partial_apeksha_SN_2023-07-31_084605615',
description: 'ARRIS_MV1_TEST_SET_partial_apeksha_SN_2023-07-31_084605615',
issuetype: { id: '10009' }
}
}
but getting error as 400 what is in solution you are providing on https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post this link its asking to much information I am not able to understand what are the required things for this please suggest something
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.
@Khushboo kabra in node js code after creating postdata as mention above you have to call the
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.