Skip to content

Commit

Permalink
Merge pull request #222 from duttonkj/patch-1
Browse files Browse the repository at this point in the history
Change endpoint for adding issue to sprint
  • Loading branch information
pioug authored Nov 4, 2021
2 parents f0861af + 0fdec03 commit 3cb5517
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/jira.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,12 @@ export default class JiraApi {
* @param {string} sprintId - the id of the sprint to add it to
*/
addIssueToSprint(issueId, sprintId) {
return this.doRequest(this.makeRequestHeader(this.makeUri({
pathname: `/sprint/${sprintId}/issues/add`,
return this.doRequest(this.makeRequestHeader(this.makeAgileUri({
pathname: `/sprint/${sprintId}/issue`,
}), {
method: 'PUT',
followAllRedirects: true,
method: 'POST',
body: {
issueKeys: [issueId],
issues: [issueId],
},
}));
}
Expand Down

0 comments on commit 3cb5517

Please sign in to comment.