Skip to content

Commit e92e18e

Browse files
Fixed mixed tabs and spaces (replaced tabs with spaces)
1 parent 0822d3a commit e92e18e

File tree

1 file changed

+89
-89
lines changed

1 file changed

+89
-89
lines changed

lib/jira.js

Lines changed: 89 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,94 +1741,94 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor
17411741
};
17421742

17431743
// ## Retrieve the backlog of a certain Rapid View ##
1744-
// ### Takes ###
1745-
// * rapidViewId: rapid view id
1746-
// * callback: for when it's done
1747-
//
1748-
// ### Returns ###
1749-
// * error string
1750-
// * backlog object
1751-
/*
1752-
* Backlog item is in the format:
1753-
* {
1754-
* "sprintMarkersMigrated": true,
1755-
* "issues": [
1756-
* {
1757-
* "id": 67890,
1758-
* "key": "KEY-1234",
1759-
* "summary": "Issue Summary",
1760-
* ...
1761-
* }
1762-
* ],
1763-
* "rankCustomFieldId": 12345,
1764-
* "sprints": [
1765-
* {
1766-
* "id": 123,
1767-
* "name": "Sprint Name",
1768-
* "state": "FUTURE",
1769-
* ...
1770-
* }
1771-
* ],
1772-
* "supportsPages": true,
1773-
* "projects": [
1774-
* {
1775-
* "id": 567,
1776-
* "key": "KEY",
1777-
* "name": "Project Name"
1778-
* }
1779-
* ],
1780-
* "epicData": {
1781-
* "epics": [
1782-
* {
1783-
* "id": 9876,
1784-
* "key": "KEY-4554",
1785-
* "typeName": "Epic",
1786-
* ...
1787-
* }
1788-
* ],
1789-
* "canEditEpics": true,
1790-
* "supportsPages": true
1791-
* },
1792-
* "canManageSprints": true,
1793-
* "maxIssuesExceeded": false,
1794-
* "queryResultLimit": 2147483647,
1795-
* "versionData": {
1796-
* "versionsPerProject": {
1797-
* "567": [
1798-
* {
1799-
* "id": 8282,
1800-
* "name": "Version Name",
1801-
* ...
1802-
* }
1803-
* ]
1804-
* },
1805-
* "canCreateVersion": true
1806-
* }
1807-
* }
1808-
*/
1809-
this.getBacklogForRapidView = function(rapidViewId, callback) {
1810-
var options = {
1811-
rejectUnauthorized: this.strictSSL,
1812-
uri: this.makeUri('/xboard/plan/backlog/data?rapidViewId=' + rapidViewId, 'rest/greenhopper/'),
1813-
method: 'GET',
1814-
json: true
1815-
};
1816-
1817-
this.doRequest(options, function(error, response) {
1818-
if (error) {
1819-
callback(error, null);
1820-
1821-
return;
1822-
}
1823-
1824-
if (response.statusCode === 200) {
1825-
callback(null, response.body);
1826-
1827-
return;
1828-
}
1829-
1830-
callback(response.statusCode + ': Error while retrieving backlog');
1831-
});
1832-
};
1744+
// ### Takes ###
1745+
// * rapidViewId: rapid view id
1746+
// * callback: for when it's done
1747+
//
1748+
// ### Returns ###
1749+
// * error string
1750+
// * backlog object
1751+
/*
1752+
* Backlog item is in the format:
1753+
* {
1754+
* "sprintMarkersMigrated": true,
1755+
* "issues": [
1756+
* {
1757+
* "id": 67890,
1758+
* "key": "KEY-1234",
1759+
* "summary": "Issue Summary",
1760+
* ...
1761+
* }
1762+
* ],
1763+
* "rankCustomFieldId": 12345,
1764+
* "sprints": [
1765+
* {
1766+
* "id": 123,
1767+
* "name": "Sprint Name",
1768+
* "state": "FUTURE",
1769+
* ...
1770+
* }
1771+
* ],
1772+
* "supportsPages": true,
1773+
* "projects": [
1774+
* {
1775+
* "id": 567,
1776+
* "key": "KEY",
1777+
* "name": "Project Name"
1778+
* }
1779+
* ],
1780+
* "epicData": {
1781+
* "epics": [
1782+
* {
1783+
* "id": 9876,
1784+
* "key": "KEY-4554",
1785+
* "typeName": "Epic",
1786+
* ...
1787+
* }
1788+
* ],
1789+
* "canEditEpics": true,
1790+
* "supportsPages": true
1791+
* },
1792+
* "canManageSprints": true,
1793+
* "maxIssuesExceeded": false,
1794+
* "queryResultLimit": 2147483647,
1795+
* "versionData": {
1796+
* "versionsPerProject": {
1797+
* "567": [
1798+
* {
1799+
* "id": 8282,
1800+
* "name": "Version Name",
1801+
* ...
1802+
* }
1803+
* ]
1804+
* },
1805+
* "canCreateVersion": true
1806+
* }
1807+
* }
1808+
*/
1809+
this.getBacklogForRapidView = function(rapidViewId, callback) {
1810+
var options = {
1811+
rejectUnauthorized: this.strictSSL,
1812+
uri: this.makeUri('/xboard/plan/backlog/data?rapidViewId=' + rapidViewId, 'rest/greenhopper/'),
1813+
method: 'GET',
1814+
json: true
1815+
};
1816+
1817+
this.doRequest(options, function(error, response) {
1818+
if (error) {
1819+
callback(error, null);
1820+
1821+
return;
1822+
}
1823+
1824+
if (response.statusCode === 200) {
1825+
callback(null, response.body);
1826+
1827+
return;
1828+
}
1829+
1830+
callback(response.statusCode + ': Error while retrieving backlog');
1831+
});
1832+
};
18331833

18341834
}).call(JiraApi.prototype);

0 commit comments

Comments
 (0)