Skip to content

Commit

Permalink
add includeInFutureSprints to listSprints; change start file to not r…
Browse files Browse the repository at this point in the history
…equire lib
  • Loading branch information
jgretz committed Mar 10, 2017
1 parent 6b52528 commit 188c1f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Truefit's Fork
A list of what we have changed:

* change start file to be src/jira so a project can reference via github and not npm (this does require that the project use babel)
* Add findGroups method
* Add includeFutureSprints and includeHistoricSprints on listSprints method

# JavaScript JIRA API for node.js #

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"engine": {
"node": ">=4.2.2"
},
"main": "./lib/jira.js",
"main": "./src/jira.js",
"files": [
"lib",
"docs",
Expand Down
4 changes: 2 additions & 2 deletions src/jira.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ export default class JiraApi {
* @function
* @param {string} rapidViewId - the id for the rapid view
*/
listSprints(rapidViewId) {
listSprints(rapidViewId, includeFutureSprints = false, includeHistoricSprints = false) {
return this.doRequest(this.makeRequestHeader(this.makeSprintQueryUri({
pathname: `/sprintquery/${rapidViewId}`,
pathname: `/sprintquery/${rapidViewId}?includeFutureSprints=${includeFutureSprints}&includeHistoricSprints=${includeHistoricSprints}`, // eslint-disable-line
})));
}

Expand Down

0 comments on commit 188c1f0

Please sign in to comment.