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
https://developer.atlassian.com/cloud/jira/software/rest/#api-rest-agile-1-0-sprint-sprintId-issue-post
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')}}
When I set sprint field it's throw error
sprint: "Field 'sprint' cannot be set. It is not on the appropriate screen, or unknown."
You should add the Sprint field to the Create issue screen.
It looks like you're new here. Sign in or register to get started.