Skip to content

Commit 4a17531

Browse files
committed
Agile endpoints updated
1 parent fdb0e80 commit 4a17531

Some content is hidden

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

70 files changed

+1754
-522
lines changed

CHANGELOG.md

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

3+
### 4.0.0
4+
35
### 3.0.5
46

57
- Dependencies updated

src/agile/backlog.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
import * as Parameters from './parameters';
2-
import { Callback } from '../callback';
32
import { Client } from '../clients';
3+
import { Callback } from '../callback';
44
import { RequestConfig } from '../requestConfig';
55

66
export class Backlog {
77
constructor(private client: Client) {}
88

99
/**
10-
* Move issues to the backlog.
11-
*
10+
* Move issues to the backlog.\
1211
* This operation is equivalent to remove future and active sprints from a given set of issues. At most 50 issues may
1312
* be moved at once.
1413
*/
1514
async moveIssuesToBacklog<T = void>(parameters: Parameters.MoveIssuesToBacklog, callback: Callback<T>): Promise<void>;
1615
/**
17-
* Move issues to the backlog.
18-
*
16+
* Move issues to the backlog.\
1917
* This operation is equivalent to remove future and active sprints from a given set of issues. At most 50 issues may
2018
* be moved at once.
2119
*/
@@ -36,18 +34,20 @@ export class Backlog {
3634
}
3735

3836
/**
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.
37+
* Move issues to the backlog of a particular board (if they are already on that board).\
38+
* This operation is equivalent to remove future and active sprints from a given set of issues if the board has
39+
* sprints If the board does not have sprints this will put the issues back into the backlog from the board. At most
40+
* 50 issues may be moved at once.
4241
*/
4342
async moveIssuesToBacklogForBoard<T = void>(
4443
parameters: Parameters.MoveIssuesToBacklogForBoard,
4544
callback: Callback<T>,
4645
): Promise<void>;
4746
/**
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.
47+
* Move issues to the backlog of a particular board (if they are already on that board).\
48+
* This operation is equivalent to remove future and active sprints from a given set of issues if the board has
49+
* sprints If the board does not have sprints this will put the issues back into the backlog from the board. At most
50+
* 50 issues may be moved at once.
5151
*/
5252
async moveIssuesToBacklogForBoard<T = void>(
5353
parameters: Parameters.MoveIssuesToBacklogForBoard,
@@ -62,8 +62,8 @@ export class Backlog {
6262
method: 'POST',
6363
data: {
6464
issues: parameters.issues,
65-
rankBeforeIssue: parameters.rankBeforeIssue,
6665
rankAfterIssue: parameters.rankAfterIssue,
66+
rankBeforeIssue: parameters.rankBeforeIssue,
6767
rankCustomFieldId: parameters.rankCustomFieldId,
6868
},
6969
};

src/agile/board.ts

+27-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
import * as Models from './models';
22
import * as Parameters from './parameters';
3-
import { Callback } from '../callback';
43
import { Client } from '../clients';
4+
import { Callback } from '../callback';
55
import { Paginated } from '../paginated';
66
import { RequestConfig } from '../requestConfig';
77

88
export class Board {
99
constructor(private client: Client) {}
1010

11-
/** Returns all boards. This only includes boards that the user has permission to view. */
11+
/**
12+
* Returns all boards. This only includes boards that the user has permission to view.
13+
*
14+
* **Deprecation notice:** The required OAuth 2.0 scopes will be updated on February 15, 2024.
15+
*
16+
* - `read:board-scope:jira-software`, `read:project:jira`
17+
*/
1218
async getAllBoards<T = Models.GetAllBoards>(
1319
parameters: Parameters.GetAllBoards | undefined,
1420
callback: Callback<T>,
1521
): Promise<void>;
16-
/** Returns all boards. This only includes boards that the user has permission to view. */
22+
/**
23+
* Returns all boards. This only includes boards that the user has permission to view.
24+
*
25+
* **Deprecation notice:** The required OAuth 2.0 scopes will be updated on February 15, 2024.
26+
*
27+
* - `read:board-scope:jira-software`, `read:project:jira`
28+
*/
1729
async getAllBoards<T = Models.GetAllBoards>(parameters?: Parameters.GetAllBoards, callback?: never): Promise<T>;
1830
async getAllBoards<T = Models.GetAllBoards>(
1931
parameters?: Parameters.GetAllBoards,
@@ -34,6 +46,7 @@ export class Board {
3446
negateLocationFiltering: parameters?.negateLocationFiltering,
3547
orderBy: parameters?.orderBy,
3648
expand: parameters?.expand,
49+
projectTypeLocation: parameters?.projectTypeLocation,
3750
filterId: parameters?.filterId,
3851
},
3952
};
@@ -101,10 +114,10 @@ export class Board {
101114
url: '/rest/agile/1.0/board',
102115
method: 'POST',
103116
data: {
104-
name: parameters.name,
105-
type: parameters.type,
106117
filterId: parameters.filterId,
107118
location: parameters.location,
119+
name: parameters.name,
120+
type: parameters.type,
108121
},
109122
};
110123

@@ -465,15 +478,17 @@ export class Board {
465478
}
466479

467480
/**
468-
* Move issues from the backlog to the board (if they are already in the backlog of that board). This operation either
469-
* moves an issue(s) onto a board from the backlog (by adding it to the issueList for the board) Or transitions the
470-
* issue(s) to the first column for a kanban board with backlog. At most 50 issues may be moved at once.
481+
* Move issues from the backlog to the board (if they are already in the backlog of that board).\
482+
* This operation either moves an issue(s) onto a board from the backlog (by adding it to the issueList for the board)
483+
* Or transitions the issue(s) to the first column for a kanban board with backlog. At most 50 issues may be moved at
484+
* once.
471485
*/
472486
async moveIssuesToBoard<T = void>(parameters: Parameters.MoveIssuesToBoard, callback: Callback<T>): Promise<void>;
473487
/**
474-
* Move issues from the backlog to the board (if they are already in the backlog of that board). This operation either
475-
* moves an issue(s) onto a board from the backlog (by adding it to the issueList for the board) Or transitions the
476-
* issue(s) to the first column for a kanban board with backlog. At most 50 issues may be moved at once.
488+
* Move issues from the backlog to the board (if they are already in the backlog of that board).\
489+
* This operation either moves an issue(s) onto a board from the backlog (by adding it to the issueList for the board)
490+
* Or transitions the issue(s) to the first column for a kanban board with backlog. At most 50 issues may be moved at
491+
* once.
477492
*/
478493
async moveIssuesToBoard<T = void>(parameters: Parameters.MoveIssuesToBoard, callback?: never): Promise<T>;
479494
async moveIssuesToBoard<T = void>(
@@ -485,8 +500,8 @@ export class Board {
485500
method: 'POST',
486501
data: {
487502
issues: parameters.issues,
488-
rankBeforeIssue: parameters.rankBeforeIssue,
489503
rankAfterIssue: parameters.rankAfterIssue,
504+
rankBeforeIssue: parameters.rankBeforeIssue,
490505
rankCustomFieldId: parameters.rankCustomFieldId,
491506
},
492507
};

src/agile/builds.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Models from './models';
22
import * as Parameters from './parameters';
3-
import { Callback } from '../callback';
43
import { Client } from '../clients';
4+
import { Callback } from '../callback';
55
import { RequestConfig } from '../requestConfig';
66

77
export class Builds {

src/agile/client/agileClient.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import {
55
Builds,
66
Deployments,
77
DevelopmentInformation,
8+
DevopsComponents,
89
Epic,
910
FeatureFlags,
1011
Issue,
12+
Operations,
1113
RemoteLinks,
1214
SecurityInformation,
1315
Sprint,
@@ -19,9 +21,11 @@ export class AgileClient extends BaseClient {
1921
builds = new Builds(this);
2022
deployments = new Deployments(this);
2123
developmentInformation = new DevelopmentInformation(this);
24+
devopsComponents = new DevopsComponents(this);
2225
epic = new Epic(this);
2326
featureFlags = new FeatureFlags(this);
2427
issue = new Issue(this);
28+
operations = new Operations(this);
2529
remoteLinks = new RemoteLinks(this);
2630
securityInformation = new SecurityInformation(this);
2731
sprint = new Sprint(this);

src/agile/deployments.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Models from './models';
22
import * as Parameters from './parameters';
3-
import { Callback } from '../callback';
43
import { Client } from '../clients';
4+
import { Callback } from '../callback';
55
import { RequestConfig } from '../requestConfig';
66

77
export class Deployments {

src/agile/developmentInformation.ts

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as Models from './models';
22
import * as Parameters from './parameters';
3-
import { Callback } from '../callback';
43
import { Client } from '../clients';
4+
import { Callback } from '../callback';
55
import { RequestConfig } from '../requestConfig';
66

77
export class DevelopmentInformation {
@@ -99,26 +99,24 @@ export class DevelopmentInformation {
9999
}
100100

101101
/**
102-
* Deletes development information entities which have all the provided properties. Entities will be deleted that
103-
* match ALL of the properties (i.e. treated as an AND). For example if request is `DELETE
102+
* Deletes development information entities which have all the provided properties. Repositories which have properties
103+
* that match ALL of the properties (i.e. treated as an AND), and all their related development information (such as
104+
* commits, branches and pull requests), will be deleted. For example if request is `DELETE
104105
* bulk?accountId=123&projectId=ABC` entities which have properties `accountId=123` and `projectId=ABC` will be
105-
* deleted. Special property `_updateSequenceId` can be used to delete all entities with updateSequenceId less or
106-
* equal than the value specified. In addition to the optional `_updateSequenceId`, one or more query params must be
107-
* supplied to specify properties to delete by. Deletion is performed asynchronously: specified entities will
108-
* eventually be removed from Jira.
106+
* deleted. Optional param `_updateSequenceId` is no longer supported. Deletion is performed asynchronously: specified
107+
* entities will eventually be removed from Jira.
109108
*/
110109
async deleteByProperties<T = unknown>(
111110
parameters: Parameters.DeleteByProperties,
112111
callback: Callback<T>,
113112
): Promise<void>;
114113
/**
115-
* Deletes development information entities which have all the provided properties. Entities will be deleted that
116-
* match ALL of the properties (i.e. treated as an AND). For example if request is `DELETE
114+
* Deletes development information entities which have all the provided properties. Repositories which have properties
115+
* that match ALL of the properties (i.e. treated as an AND), and all their related development information (such as
116+
* commits, branches and pull requests), will be deleted. For example if request is `DELETE
117117
* bulk?accountId=123&projectId=ABC` entities which have properties `accountId=123` and `projectId=ABC` will be
118-
* deleted. Special property `_updateSequenceId` can be used to delete all entities with updateSequenceId less or
119-
* equal than the value specified. In addition to the optional `_updateSequenceId`, one or more query params must be
120-
* supplied to specify properties to delete by. Deletion is performed asynchronously: specified entities will
121-
* eventually be removed from Jira.
118+
* deleted. Optional param `_updateSequenceId` is no longer supported. Deletion is performed asynchronously: specified
119+
* entities will eventually be removed from Jira.
122120
*/
123121
async deleteByProperties<T = unknown>(parameters: Parameters.DeleteByProperties, callback?: never): Promise<T>;
124122
async deleteByProperties<T = unknown>(
@@ -137,9 +135,9 @@ export class DevelopmentInformation {
137135
}
138136

139137
/**
140-
* Checks if development information which have all the provided properties exists. For example, if request is `GET
141-
* existsByProperties?accountId=123&projectId=ABC` then result will be positive only if there is at least one entity
142-
* or repository with both properties `accountId=123` and `projectId=ABC`. Special property `_updateSequenceId` can be
138+
* Checks if repositories which have all the provided properties exists. For example, if request is `GET
139+
* existsByProperties?accountId=123&projectId=ABC` then result will be positive only if there is at least one
140+
* repository with both properties `accountId=123` and `projectId=ABC`. Special property `_updateSequenceId` can be
143141
* used to filter all entities with updateSequenceId less or equal than the value specified. In addition to the
144142
* optional `_updateSequenceId`, one or more query params must be supplied to specify properties to search by.
145143
*/
@@ -148,9 +146,9 @@ export class DevelopmentInformation {
148146
callback: Callback<T>,
149147
): Promise<void>;
150148
/**
151-
* Checks if development information which have all the provided properties exists. For example, if request is `GET
152-
* existsByProperties?accountId=123&projectId=ABC` then result will be positive only if there is at least one entity
153-
* or repository with both properties `accountId=123` and `projectId=ABC`. Special property `_updateSequenceId` can be
149+
* Checks if repositories which have all the provided properties exists. For example, if request is `GET
150+
* existsByProperties?accountId=123&projectId=ABC` then result will be positive only if there is at least one
151+
* repository with both properties `accountId=123` and `projectId=ABC`. Special property `_updateSequenceId` can be
154152
* used to filter all entities with updateSequenceId less or equal than the value specified. In addition to the
155153
* optional `_updateSequenceId`, one or more query params must be supplied to specify properties to search by.
156154
*/

0 commit comments

Comments
 (0)