Hello, I am trying to create JIRA Issue by using this API request in Go:
POST /rest/api/3/issue, and save the issue key from the API response to my database.
Sometimes, the REST API response shows no results so I could not save the issue key to the database, but actually, the issue exists in JIRA. What is the reason for this?
What response do you get from the request?
I'm not sure how the response exactly looks like. It's hard for me to reproduce it because that problem just happens sometimes. When it happens, the issue key is null or empty string but no error is returned. So I think, the response would look like this
{
“id” : “”,
“key”: “”,
“fields”: {
}
..
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you read this documentation (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post) you will see that this request have certain responses. E.g. 201 means that the request was succesful:
So what is the response of your request?
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.