Skip to content

Commit 220892b

Browse files
Short parameters were added for applicable methods (MrRefactoring#218)
* service desk api updates * removed deprecated properties * removed deprecated properties * agile API updated * agile models updates * MrRefactoring#219 accountId bugfix * Version 2 API updates * Version 2 models links added * short parameters added for version 2 * timeout added for unit tests * tests fixes * deps updated * package.json updated * updates * version3 updated * prettier run * changelog updated
1 parent 87095f1 commit 220892b

File tree

281 files changed

+3366
-2084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+3366
-2084
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Jira.js changelog
22

3+
### 2.16.0
4+
5+
Short parameters were added for applicable methods.
6+
37
### 2.15.17
48

59
- Badge fix

package-lock.json

+409-179
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira.js",
3-
"version": "2.15.17",
3+
"version": "2.16.0",
44
"description": "jira.js is a powerful Node.JS/Browser module that allows you to interact with the Jira API very easily",
55
"main": "out/index.js",
66
"types": "out/index.d.ts",
@@ -51,7 +51,7 @@
5151
}
5252
},
5353
"devDependencies": {
54-
"@swc-node/register": "^1.5.4",
54+
"@swc-node/register": "^1.5.5",
5555
"@types/express": "^4.17.15",
5656
"@types/node": "^18.11.18",
5757
"@types/oauth": "^0.9.1",
@@ -66,11 +66,11 @@
6666
"eslint-import-resolver-typescript": "^3.5.2",
6767
"eslint-plugin-import": "^2.26.0",
6868
"eslint-plugin-sort-exports": "^0.8.0",
69-
"prettier": "^2.8.1",
69+
"prettier": "^2.8.2",
7070
"prettier-plugin-jsdoc": "^0.4.2",
7171
"sinon": "^15.0.1",
72-
"typedoc": "^0.23.23",
73-
"typedoc-plugin-extras": "^2.3.1",
72+
"typedoc": "^0.23.24",
73+
"typedoc-plugin-extras": "^2.3.2",
7474
"typescript": "^4.9.4"
7575
},
7676
"dependencies": {

src/agile/backlog.ts

+6-10
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,18 @@ export class Backlog {
3636
}
3737

3838
/**
39-
* Move issues to the backlog of a particular board (if they are already on that board).
40-
*
41-
* This operation is equivalent to remove future and active sprints from a given set of issues if the board has
42-
* sprints If the board does not have sprints this will put the issues back into the backlog from the board. At most
43-
* 50 issues may be moved at once.
39+
* Move issues to the backlog of a particular board (if they are already on that board). This operation is equivalent
40+
* to remove future and active sprints from a given set of issues if the board has sprints If the board does not have
41+
* sprints this will put the issues back into the backlog from the board. At most 50 issues may be moved at once.
4442
*/
4543
async moveIssuesToBacklogForBoard<T = void>(
4644
parameters: Parameters.MoveIssuesToBacklogForBoard,
4745
callback: Callback<T>
4846
): Promise<void>;
4947
/**
50-
* Move issues to the backlog of a particular board (if they are already on that board).
51-
*
52-
* This operation is equivalent to remove future and active sprints from a given set of issues if the board has
53-
* sprints If the board does not have sprints this will put the issues back into the backlog from the board. At most
54-
* 50 issues may be moved at once.
48+
* Move issues to the backlog of a particular board (if they are already on that board). This operation is equivalent
49+
* to remove future and active sprints from a given set of issues if the board has sprints If the board does not have
50+
* sprints this will put the issues back into the backlog from the board. At most 50 issues may be moved at once.
5551
*/
5652
async moveIssuesToBacklogForBoard<T = void>(
5753
parameters: Parameters.MoveIssuesToBacklogForBoard,

src/agile/board.ts

+24-26
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,12 @@ export class Board {
5050
* <code>location</code> must include the <code>type</code> property (Valid values: project, user). If choosing
5151
* 'project', then a project must be specified by a <code>projectKeyOrId</code> property in <code>location</code>. If
5252
* choosing 'user', the current user is chosen by default. The <code>projectKeyOrId</code> property should not be
53-
* provided. </li> </ul> <p> Note: <ul>
54-
* <li>
55-
* If you want to create a new project with an associated board, use the <a href="https://docs.atlassian.com/jira/REST/latest">Jira platform REST API</a>.
56-
* For more information, see the <a href="#api-rest-api-<ver>-project-post">Create project</a> method.
57-
* The <code>projectTypeKey</code> for software boards must be 'software' and the <code>projectTemplateKey</code> must be either
58-
* <code>com.pyxis.greenhopper.jira:gh-kanban-template</code> or <code>com.pyxis.greenhopper.jira:gh-scrum-template</code>.
59-
* </li>
53+
* provided. </li> </ul> <p> Note: <ul> <li> If you want to create a new project with an associated board, use the <a
54+
* href="https://docs.atlassian.com/jira/REST/latest">Jira platform REST API</a>. For more information, see the <a
55+
* href="#api-rest-api-<ver>-project-post">Create project</a> method. The <code>projectTypeKey</code> for software
56+
* boards must be 'software' and the <code>projectTemplateKey</code> must be either
57+
* <code>com.pyxis.greenhopper.jira:gh-kanban-template</code> or
58+
* <code>com.pyxis.greenhopper.jira:gh-scrum-template</code>. </li>
6059
* <li>
6160
* You can create a filter using the <a href="https://docs.atlassian.com/jira/REST/latest">Jira REST API</a>.
6261
* For more information, see the <a href="#api-rest-api-<ver>-filter-post">Create filter</a> method.
@@ -76,13 +75,12 @@ export class Board {
7675
* <code>location</code> must include the <code>type</code> property (Valid values: project, user). If choosing
7776
* 'project', then a project must be specified by a <code>projectKeyOrId</code> property in <code>location</code>. If
7877
* choosing 'user', the current user is chosen by default. The <code>projectKeyOrId</code> property should not be
79-
* provided. </li> </ul> <p> Note: <ul>
80-
* <li>
81-
* If you want to create a new project with an associated board, use the <a href="https://docs.atlassian.com/jira/REST/latest">Jira platform REST API</a>.
82-
* For more information, see the <a href="#api-rest-api-<ver>-project-post">Create project</a> method.
83-
* The <code>projectTypeKey</code> for software boards must be 'software' and the <code>projectTemplateKey</code> must be either
84-
* <code>com.pyxis.greenhopper.jira:gh-kanban-template</code> or <code>com.pyxis.greenhopper.jira:gh-scrum-template</code>.
85-
* </li>
78+
* provided. </li> </ul> <p> Note: <ul> <li> If you want to create a new project with an associated board, use the <a
79+
* href="https://docs.atlassian.com/jira/REST/latest">Jira platform REST API</a>. For more information, see the <a
80+
* href="#api-rest-api-<ver>-project-post">Create project</a> method. The <code>projectTypeKey</code> for software
81+
* boards must be 'software' and the <code>projectTemplateKey</code> must be either
82+
* <code>com.pyxis.greenhopper.jira:gh-kanban-template</code> or
83+
* <code>com.pyxis.greenhopper.jira:gh-scrum-template</code>. </li>
8684
* <li>
8785
* You can create a filter using the <a href="https://docs.atlassian.com/jira/REST/latest">Jira REST API</a>.
8886
* For more information, see the <a href="#api-rest-api-<ver>-filter-post">Create filter</a> method.
@@ -228,12 +226,12 @@ export class Board {
228226
* for the board, in the order defined in the column configuration. For each column, it shows the issue status mapping
229227
* as well as the constraint type (Valid values: none, issueCount, issueCountExclSubs) for the min/max number of
230228
* issues. Note, the last column with statuses mapped to it is treated as the "Done" column, which means that issues
231-
* in that column will be marked as already completed.</li> <li><code>estimation</code> (Scrum only) - Contains information about type of estimation used for the board. Valid values: none, issueCount, field.
232-
* If the estimation type is "field", the ID and display name of the field used for estimation is also returned.
233-
* Note, estimates for an issue can be updated by a PUT /rest/api/~ver~/issue/{issueIdOrKey} request, however the fields must be on the screen.
234-
* "timeoriginalestimate" field will never be on the screen, so in order to update it "originalEstimate" in "timetracking" field should be updated.
235-
* </li>
236-
* <li><code>ranking</code> - Contains information about custom field used for ranking in the given board.</li>
229+
* in that column will be marked as already completed.</li> <li><code>estimation</code> (Scrum only) - Contains
230+
* information about type of estimation used for the board. Valid values: none, issueCount, field. If the estimation
231+
* type is "field", the ID and display name of the field used for estimation is also returned. Note, estimates for an
232+
* issue can be updated by a PUT /rest/api/~ver~/issue/{issueIdOrKey} request, however the fields must be on the
233+
* screen. "timeoriginalestimate" field will never be on the screen, so in order to update it "originalEstimate" in
234+
* "timetracking" field should be updated. </li> <li><code>ranking</code> - Contains information about custom field used for ranking in the given board.</li>
237235
* </ul>
238236
*/
239237
async getConfiguration<T = Models.GetConfiguration>(
@@ -249,12 +247,12 @@ export class Board {
249247
* for the board, in the order defined in the column configuration. For each column, it shows the issue status mapping
250248
* as well as the constraint type (Valid values: none, issueCount, issueCountExclSubs) for the min/max number of
251249
* issues. Note, the last column with statuses mapped to it is treated as the "Done" column, which means that issues
252-
* in that column will be marked as already completed.</li> <li><code>estimation</code> (Scrum only) - Contains information about type of estimation used for the board. Valid values: none, issueCount, field.
253-
* If the estimation type is "field", the ID and display name of the field used for estimation is also returned.
254-
* Note, estimates for an issue can be updated by a PUT /rest/api/~ver~/issue/{issueIdOrKey} request, however the fields must be on the screen.
255-
* "timeoriginalestimate" field will never be on the screen, so in order to update it "originalEstimate" in "timetracking" field should be updated.
256-
* </li>
257-
* <li><code>ranking</code> - Contains information about custom field used for ranking in the given board.</li>
250+
* in that column will be marked as already completed.</li> <li><code>estimation</code> (Scrum only) - Contains
251+
* information about type of estimation used for the board. Valid values: none, issueCount, field. If the estimation
252+
* type is "field", the ID and display name of the field used for estimation is also returned. Note, estimates for an
253+
* issue can be updated by a PUT /rest/api/~ver~/issue/{issueIdOrKey} request, however the fields must be on the
254+
* screen. "timeoriginalestimate" field will never be on the screen, so in order to update it "originalEstimate" in
255+
* "timetracking" field should be updated. </li> <li><code>ranking</code> - Contains information about custom field used for ranking in the given board.</li>
258256
* </ul>
259257
*/
260258
async getConfiguration<T = Models.GetConfiguration>(

0 commit comments

Comments
 (0)