I just want to create issue under the sprint but create issue api dosen't provide sprint id to add issue in sprint
to add issue in sprint here is other api to do is below
any solution to direct add into sprint while creating issue via rest api? or how to move into sprint with javascript? and when i call above API it's giving 415 error with blank response.
Hello,
You can always make two subsequent calls. The first one to create an issue and then move this issue to a sprint.
If you want to make it in one call, then set the Sprint field, when you create the issue.
Hi thank you for your response,
can you please provide the field example how it should be you can also check my code
fields : {
project : {
key : formData.get('project')
},
summary : formData.get('taskName'),
description: {
"type": "doc",
"version": 1,
"content": [{
"type": "paragraph",
"content": [{
"text": formData.get('taskDescription'),
"type": "text"
}]
}]
},
issuetype : {
id : formData.get('j-selected-issue-type-text')
},
assignee: {
id: formData.get('assign')
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should add the Sprint field to the Create issue screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I encounter the same issue, although i have added the sprint field to my create issue screen. Post creation for issues without relation to a sprint works.
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.