@resolution/jira-api-client 0.16.8 → 0.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +5 -5
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1 -3
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
- package/lib/openapi/platform/models/fieldSchemes.d.ts +7 -0
- package/lib/openapi/platform/models/fieldSchemes.js +5 -0
- package/lib/openapi/platform/models/fieldSchemes.js.map +1 -1
- package/lib/openapi/platform/models/issueCustomFieldContexts.d.ts +22 -0
- package/lib/openapi/platform/models/issueCustomFieldContexts.js +11 -0
- package/lib/openapi/platform/models/issueCustomFieldContexts.js.map +1 -1
- package/lib/openapi/platform/models/issueSearch.d.ts +27 -0
- package/lib/openapi/platform/models/issueSearch.js +12 -1
- package/lib/openapi/platform/models/issueSearch.js.map +1 -1
- package/lib/openapi/platform/models/projectTemplates.d.ts +23 -1
- package/lib/openapi/platform/models/projectTemplates.js +4 -0
- package/lib/openapi/platform/models/projectTemplates.js.map +1 -1
- package/lib/openapi/platform/models/projects.d.ts +1 -1
- package/lib/openapi/platform/models/projects.js +1 -1
- package/lib/openapi/platform/models/projects.js.map +1 -1
- package/lib/openapi/platform/models/workflowTransitionRules.d.ts +6 -2
- package/lib/openapi/platform/models/workflowTransitionRules.js +1 -1
- package/lib/openapi/platform/models/workflowTransitionRules.js.map +1 -1
- package/lib/openapi/platform/models/workflows.d.ts +3 -231
- package/lib/openapi/platform/models/workflows.js +1 -60
- package/lib/openapi/platform/models/workflows.js.map +1 -1
- package/lib/openapi/platform/services/FieldSchemesService.d.ts +2 -0
- package/lib/openapi/platform/services/FieldSchemesService.js +2 -0
- package/lib/openapi/platform/services/FieldSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +12 -0
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.js +12 -0
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +24 -2
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js +6 -4
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldsService.d.ts +2 -0
- package/lib/openapi/platform/services/IssueFieldsService.js +2 -0
- package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/IssuesService.d.ts +5 -0
- package/lib/openapi/platform/services/IssuesService.js +5 -0
- package/lib/openapi/platform/services/IssuesService.js.map +1 -1
- package/lib/openapi/platform/services/PrioritySchemesService.d.ts +10 -5
- package/lib/openapi/platform/services/PrioritySchemesService.js +10 -5
- package/lib/openapi/platform/services/PrioritySchemesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectTemplatesService.d.ts +3 -0
- package/lib/openapi/platform/services/ProjectTemplatesService.js +3 -0
- package/lib/openapi/platform/services/ProjectTemplatesService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +2 -1
- package/lib/openapi/platform/services/ScreenTabFieldsService.js +4 -1
- package/lib/openapi/platform/services/ScreenTabFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +12 -2
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.js +8 -0
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowsService.d.ts +26 -1028
- package/lib/openapi/platform/services/WorkflowsService.js +25 -953
- package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +3 -3
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +1 -1
- package/lib/openapi/serviceManagement/models/servicedesk.d.ts +7 -0
- package/lib/openapi/serviceManagement/models/servicedesk.js +4 -0
- package/lib/openapi/serviceManagement/models/servicedesk.js.map +1 -1
- package/lib/openapi/serviceManagement/services/RequestService.d.ts +12 -4
- package/lib/openapi/serviceManagement/services/RequestService.js +12 -4
- package/lib/openapi/serviceManagement/services/RequestService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +59 -1
- package/lib/openapi/serviceManagement/services/ServicedeskService.js +64 -0
- package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -1
- package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +3 -3
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js +11 -1
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
- package/lib/openapi/software/models/board.d.ts +5 -0
- package/lib/openapi/software/models/board.js +3 -0
- package/lib/openapi/software/models/board.js.map +1 -1
- package/lib/openapi/software/models/common.d.ts +28 -0
- package/lib/openapi/software/models/common.js +9 -0
- package/lib/openapi/software/models/common.js.map +1 -1
- package/lib/openapi/software/services/BoardService.d.ts +1596 -240
- package/lib/openapi/software/services/BoardService.js +1526 -220
- package/lib/openapi/software/services/BoardService.js.map +1 -1
- package/lib/openapi/software/services/EpicService.d.ts +524 -1
- package/lib/openapi/software/services/EpicService.js +496 -0
- package/lib/openapi/software/services/EpicService.js.map +1 -1
- package/lib/openapi/software/services/SprintService.d.ts +257 -1
- package/lib/openapi/software/services/SprintService.js +242 -0
- package/lib/openapi/software/services/SprintService.js.map +1 -1
- package/package.json +3 -3
|
@@ -346,6 +346,78 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
346
346
|
}
|
|
347
347
|
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getAllVersions.response"))).then(commonHttpClient.getBody);
|
|
348
348
|
};
|
|
349
|
+
/**
|
|
350
|
+
* Returns the approximate count of all issues from the board's backlog, for the
|
|
351
|
+
* given board ID. This is equivalent to counting the issues on all pages returned
|
|
352
|
+
* by [Get issues for backlog
|
|
353
|
+
* enhanced](https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-software-1-0-board-boardid-backlog-get).
|
|
354
|
+
* Recent updates might not be immediately visible in the returned output. This
|
|
355
|
+
* only includes issues that the user has permission to view.
|
|
356
|
+
*
|
|
357
|
+
* @returns Returns the requested issue count.
|
|
358
|
+
*
|
|
359
|
+
* example:
|
|
360
|
+
* ```
|
|
361
|
+
* {
|
|
362
|
+
* "count": 153
|
|
363
|
+
* }
|
|
364
|
+
* ```
|
|
365
|
+
* @path GET `/rest/software/1.0/board/{boardId}/backlog/approximate-count`
|
|
366
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-software-1-0-board-boardid-backlog-approximate-count-get
|
|
367
|
+
* @param params
|
|
368
|
+
*/
|
|
369
|
+
this.getApproximateIssueCountForBacklog = ({ boardId, jql }) => {
|
|
370
|
+
return this.getClientInstance().request({
|
|
371
|
+
path: "/rest/software/1.0/board/{boardId}/backlog/approximate-count",
|
|
372
|
+
method: "GET",
|
|
373
|
+
pathParams: {
|
|
374
|
+
boardId
|
|
375
|
+
},
|
|
376
|
+
query: {
|
|
377
|
+
jql
|
|
378
|
+
}
|
|
379
|
+
}).then(this.getClientInstance().responseHandler({
|
|
380
|
+
200: {
|
|
381
|
+
"application/json": "json"
|
|
382
|
+
}
|
|
383
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getApproximateIssueCountForBacklog.response"))).then(commonHttpClient.getBody);
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Returns the approximate count of all issues from a board, for a given board ID.
|
|
387
|
+
* This is equivalent to counting the issues on all pages returned by [Get issues
|
|
388
|
+
* for board
|
|
389
|
+
* enhanced](https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-software-1-0-board-boardid-issue-get).
|
|
390
|
+
* Recent updates might not be immediately visible in the returned output. This
|
|
391
|
+
* only includes issues that the user has permission to view.
|
|
392
|
+
*
|
|
393
|
+
* @returns Returns the requested issue count.
|
|
394
|
+
*
|
|
395
|
+
* example:
|
|
396
|
+
* ```
|
|
397
|
+
* {
|
|
398
|
+
* "count": 153
|
|
399
|
+
* }
|
|
400
|
+
* ```
|
|
401
|
+
* @path GET `/rest/software/1.0/board/{boardId}/issue/approximate-count`
|
|
402
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-software-1-0-board-boardid-issue-approximate-count-get
|
|
403
|
+
* @param params
|
|
404
|
+
*/
|
|
405
|
+
this.getApproximateIssueCountForBoard = ({ boardId, jql }) => {
|
|
406
|
+
return this.getClientInstance().request({
|
|
407
|
+
path: "/rest/software/1.0/board/{boardId}/issue/approximate-count",
|
|
408
|
+
method: "GET",
|
|
409
|
+
pathParams: {
|
|
410
|
+
boardId
|
|
411
|
+
},
|
|
412
|
+
query: {
|
|
413
|
+
jql
|
|
414
|
+
}
|
|
415
|
+
}).then(this.getClientInstance().responseHandler({
|
|
416
|
+
200: {
|
|
417
|
+
"application/json": "json"
|
|
418
|
+
}
|
|
419
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getApproximateIssueCountForBoard.response"))).then(commonHttpClient.getBody);
|
|
420
|
+
};
|
|
349
421
|
/**
|
|
350
422
|
* Returns the board for the given board ID. This board will only be returned if
|
|
351
423
|
* the user has permission to view it. Admins without the view permission will see
|
|
@@ -433,6 +505,7 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
433
505
|
* closedSprints, flagged, and epic. By default, the returned issues are ordered
|
|
434
506
|
* by rank.
|
|
435
507
|
*
|
|
508
|
+
* @deprecated
|
|
436
509
|
* @returns Returns the requested issues, at the specified page of the results.
|
|
437
510
|
*
|
|
438
511
|
* example:
|
|
@@ -627,12 +700,252 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
627
700
|
}
|
|
628
701
|
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getBoardIssuesForEpic.response"))).then(commonHttpClient.getBody);
|
|
629
702
|
};
|
|
703
|
+
/**
|
|
704
|
+
* Returns all issues that belong to an epic on the board, for the given epic ID
|
|
705
|
+
* and the board ID. Result pagination is token based, using `nextPageToken` and
|
|
706
|
+
* `maxResults`. This only includes issues that the user has permission to view.
|
|
707
|
+
* Note, if the user does not have permission to view the board, no issues will be
|
|
708
|
+
* returned at all. Issues returned from this resource include Software project
|
|
709
|
+
* fields, like sprint, closedSprints, flagged, and epic. By default, the returned
|
|
710
|
+
* issues are ordered by rank.
|
|
711
|
+
*
|
|
712
|
+
* @returns Returns the requested issues, at the specified page of the results.
|
|
713
|
+
*
|
|
714
|
+
* example:
|
|
715
|
+
* ```
|
|
716
|
+
* {
|
|
717
|
+
* "expand": "names,schema",
|
|
718
|
+
* "isLast": true,
|
|
719
|
+
* "issues": [
|
|
720
|
+
* {
|
|
721
|
+
* "expand": "",
|
|
722
|
+
* "fields": {
|
|
723
|
+
* "watcher": {
|
|
724
|
+
* "isWatching": false,
|
|
725
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
|
|
726
|
+
* "watchCount": 1
|
|
727
|
+
* },
|
|
728
|
+
* "attachment": [
|
|
729
|
+
* {
|
|
730
|
+
* "author": {
|
|
731
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
732
|
+
* "accountType": "atlassian",
|
|
733
|
+
* "active": false,
|
|
734
|
+
* "avatarUrls": {
|
|
735
|
+
* "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
736
|
+
* "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
737
|
+
* "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
738
|
+
* "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
739
|
+
* },
|
|
740
|
+
* "displayName": "Mia Krystof",
|
|
741
|
+
* "key": "",
|
|
742
|
+
* "name": "",
|
|
743
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
744
|
+
* },
|
|
745
|
+
* "content": "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10001",
|
|
746
|
+
* "created": "2023-06-24T19:24:50.000+0000",
|
|
747
|
+
* "filename": "debuglog.txt",
|
|
748
|
+
* "id": 10001,
|
|
749
|
+
* "mimeType": "text/plain",
|
|
750
|
+
* "self": "https://your-domain.atlassian.net/rest/api/2/attachments/10001",
|
|
751
|
+
* "size": 2460
|
|
752
|
+
* }
|
|
753
|
+
* ],
|
|
754
|
+
* "sub-tasks": [
|
|
755
|
+
* {
|
|
756
|
+
* "id": "10000",
|
|
757
|
+
* "outwardIssue": {
|
|
758
|
+
* "fields": {
|
|
759
|
+
* "status": {
|
|
760
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
761
|
+
* "name": "Open"
|
|
762
|
+
* }
|
|
763
|
+
* },
|
|
764
|
+
* "id": "10003",
|
|
765
|
+
* "key": "ED-2",
|
|
766
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
|
|
767
|
+
* },
|
|
768
|
+
* "type": {
|
|
769
|
+
* "id": "10000",
|
|
770
|
+
* "inward": "Parent",
|
|
771
|
+
* "name": "",
|
|
772
|
+
* "outward": "Sub-task"
|
|
773
|
+
* }
|
|
774
|
+
* }
|
|
775
|
+
* ],
|
|
776
|
+
* "description": "Main order flow broken",
|
|
777
|
+
* "project": {
|
|
778
|
+
* "avatarUrls": {
|
|
779
|
+
* "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
|
|
780
|
+
* "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
|
|
781
|
+
* "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
|
|
782
|
+
* "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
|
|
783
|
+
* },
|
|
784
|
+
* "id": "10000",
|
|
785
|
+
* "insight": {
|
|
786
|
+
* "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
|
|
787
|
+
* "totalIssueCount": 100
|
|
788
|
+
* },
|
|
789
|
+
* "key": "EX",
|
|
790
|
+
* "name": "Example",
|
|
791
|
+
* "projectCategory": {
|
|
792
|
+
* "description": "First Project Category",
|
|
793
|
+
* "id": "10000",
|
|
794
|
+
* "name": "FIRST",
|
|
795
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
|
|
796
|
+
* },
|
|
797
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
|
|
798
|
+
* "simplified": false,
|
|
799
|
+
* "style": "classic"
|
|
800
|
+
* },
|
|
801
|
+
* "comment": [
|
|
802
|
+
* {
|
|
803
|
+
* "author": {
|
|
804
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
805
|
+
* "active": false,
|
|
806
|
+
* "displayName": "Mia Krystof",
|
|
807
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
808
|
+
* },
|
|
809
|
+
* "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
|
|
810
|
+
* "created": "2021-01-17T12:34:00.000+0000",
|
|
811
|
+
* "id": "10000",
|
|
812
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
|
|
813
|
+
* "updateAuthor": {
|
|
814
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
815
|
+
* "active": false,
|
|
816
|
+
* "displayName": "Mia Krystof",
|
|
817
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
818
|
+
* },
|
|
819
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
820
|
+
* "visibility": {
|
|
821
|
+
* "identifier": "Administrators",
|
|
822
|
+
* "type": "role",
|
|
823
|
+
* "value": "Administrators"
|
|
824
|
+
* }
|
|
825
|
+
* }
|
|
826
|
+
* ],
|
|
827
|
+
* "issuelinks": [
|
|
828
|
+
* {
|
|
829
|
+
* "id": "10001",
|
|
830
|
+
* "outwardIssue": {
|
|
831
|
+
* "fields": {
|
|
832
|
+
* "status": {
|
|
833
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
834
|
+
* "name": "Open"
|
|
835
|
+
* }
|
|
836
|
+
* },
|
|
837
|
+
* "id": "10004L",
|
|
838
|
+
* "key": "PR-2",
|
|
839
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
|
|
840
|
+
* },
|
|
841
|
+
* "type": {
|
|
842
|
+
* "id": "10000",
|
|
843
|
+
* "inward": "depends on",
|
|
844
|
+
* "name": "Dependent",
|
|
845
|
+
* "outward": "is depended by"
|
|
846
|
+
* }
|
|
847
|
+
* },
|
|
848
|
+
* {
|
|
849
|
+
* "id": "10002",
|
|
850
|
+
* "inwardIssue": {
|
|
851
|
+
* "fields": {
|
|
852
|
+
* "status": {
|
|
853
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
854
|
+
* "name": "Open"
|
|
855
|
+
* }
|
|
856
|
+
* },
|
|
857
|
+
* "id": "10004",
|
|
858
|
+
* "key": "PR-3",
|
|
859
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
|
|
860
|
+
* },
|
|
861
|
+
* "type": {
|
|
862
|
+
* "id": "10000",
|
|
863
|
+
* "inward": "depends on",
|
|
864
|
+
* "name": "Dependent",
|
|
865
|
+
* "outward": "is depended by"
|
|
866
|
+
* }
|
|
867
|
+
* }
|
|
868
|
+
* ],
|
|
869
|
+
* "worklog": [
|
|
870
|
+
* {
|
|
871
|
+
* "author": {
|
|
872
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
873
|
+
* "active": false,
|
|
874
|
+
* "displayName": "Mia Krystof",
|
|
875
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
876
|
+
* },
|
|
877
|
+
* "comment": "I did some work here.",
|
|
878
|
+
* "id": "100028",
|
|
879
|
+
* "issueId": "10002",
|
|
880
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
|
|
881
|
+
* "started": "2021-01-17T12:34:00.000+0000",
|
|
882
|
+
* "timeSpent": "3h 20m",
|
|
883
|
+
* "timeSpentSeconds": 12000,
|
|
884
|
+
* "updateAuthor": {
|
|
885
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
886
|
+
* "active": false,
|
|
887
|
+
* "displayName": "Mia Krystof",
|
|
888
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
889
|
+
* },
|
|
890
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
891
|
+
* "visibility": {
|
|
892
|
+
* "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
|
|
893
|
+
* "type": "group",
|
|
894
|
+
* "value": "jira-developers"
|
|
895
|
+
* }
|
|
896
|
+
* }
|
|
897
|
+
* ],
|
|
898
|
+
* "updated": 1,
|
|
899
|
+
* "timetracking": {
|
|
900
|
+
* "originalEstimate": "10m",
|
|
901
|
+
* "originalEstimateSeconds": 600,
|
|
902
|
+
* "remainingEstimate": "3m",
|
|
903
|
+
* "remainingEstimateSeconds": 200,
|
|
904
|
+
* "timeSpent": "6m",
|
|
905
|
+
* "timeSpentSeconds": 400
|
|
906
|
+
* }
|
|
907
|
+
* },
|
|
908
|
+
* "id": "10002",
|
|
909
|
+
* "key": "ED-1",
|
|
910
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
|
|
911
|
+
* }
|
|
912
|
+
* ]
|
|
913
|
+
* }
|
|
914
|
+
* ```
|
|
915
|
+
* @path GET `/rest/software/1.0/board/{boardId}/epic/{epicId}/issue`
|
|
916
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-software-1-0-board-boardid-epic-epicid-issue-get
|
|
917
|
+
* @param params
|
|
918
|
+
*/
|
|
919
|
+
this.getBoardIssuesForEpicJsis = ({ boardId, epicId, nextPageToken, maxResults, reconcileIssues, jql, validateQuery, fields, expand }) => {
|
|
920
|
+
return this.getClientInstance().request({
|
|
921
|
+
path: "/rest/software/1.0/board/{boardId}/epic/{epicId}/issue",
|
|
922
|
+
method: "GET",
|
|
923
|
+
pathParams: {
|
|
924
|
+
boardId,
|
|
925
|
+
epicId
|
|
926
|
+
},
|
|
927
|
+
query: {
|
|
928
|
+
nextPageToken,
|
|
929
|
+
maxResults,
|
|
930
|
+
reconcileIssues,
|
|
931
|
+
jql,
|
|
932
|
+
validateQuery,
|
|
933
|
+
fields,
|
|
934
|
+
expand
|
|
935
|
+
}
|
|
936
|
+
}).then(this.getClientInstance().responseHandler({
|
|
937
|
+
200: {
|
|
938
|
+
"application/json": "json"
|
|
939
|
+
}
|
|
940
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getBoardIssuesForEpicJSIS.response"))).then(commonHttpClient.getBody);
|
|
941
|
+
};
|
|
630
942
|
/**
|
|
631
943
|
* Get all issues you have access to that belong to the sprint from the board.
|
|
632
944
|
* Issue returned from this resource contains additional fields like: sprint,
|
|
633
945
|
* closedSprints, flagged and epic. Issues are returned ordered by rank. JQL order
|
|
634
946
|
* has higher priority than default rank.
|
|
635
947
|
*
|
|
948
|
+
* @deprecated
|
|
636
949
|
* @returns Returns the requested issues, at the specified page of the results.
|
|
637
950
|
*
|
|
638
951
|
* example:
|
|
@@ -828,65 +1141,304 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
828
1141
|
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getBoardIssuesForSprint.response"))).then(commonHttpClient.getBody);
|
|
829
1142
|
};
|
|
830
1143
|
/**
|
|
831
|
-
*
|
|
832
|
-
*
|
|
833
|
-
*
|
|
834
|
-
*
|
|
835
|
-
*
|
|
836
|
-
*
|
|
837
|
-
*
|
|
838
|
-
* @param params
|
|
839
|
-
*/
|
|
840
|
-
this.getBoardProperty = ({ boardId, propertyKey }) => {
|
|
841
|
-
return this.getClientInstance().request({
|
|
842
|
-
path: "/rest/agile/1.0/board/{boardId}/properties/{propertyKey}",
|
|
843
|
-
method: "GET",
|
|
844
|
-
pathParams: {
|
|
845
|
-
boardId,
|
|
846
|
-
propertyKey
|
|
847
|
-
}
|
|
848
|
-
}).then(this.getClientInstance().responseHandler({
|
|
849
|
-
200: {
|
|
850
|
-
"application/json": "json"
|
|
851
|
-
}
|
|
852
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getBoardProperty.response"))).then(commonHttpClient.getBody);
|
|
853
|
-
};
|
|
854
|
-
/**
|
|
855
|
-
* Returns the keys of all properties for the board identified by the id. The user
|
|
856
|
-
* who retrieves the property keys is required to have permissions to view the
|
|
857
|
-
* board.
|
|
1144
|
+
* Get all issues you have access to that belong to the sprint from the board.
|
|
1145
|
+
* Result pagination is token-based, using `nextPageToken` and `maxResults`. This
|
|
1146
|
+
* only includes issues that the user has permission to view. Note, if the user
|
|
1147
|
+
* does not have permission to view the board, no issues will be returned at all.
|
|
1148
|
+
* Issues returned from this resource contains additional fields like: sprint,
|
|
1149
|
+
* closedSprints, flagged, and epic. Issues are returned ordered by rank. JQL
|
|
1150
|
+
* order has higher priority than default rank.
|
|
858
1151
|
*
|
|
859
|
-
* @returns
|
|
860
|
-
* @path GET `/rest/agile/1.0/board/{boardId}/properties`
|
|
861
|
-
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-agile-1-0-board-boardid-properties-get
|
|
862
|
-
* @param params
|
|
863
|
-
*/
|
|
864
|
-
this.getBoardPropertyKeys = ({ boardId }) => {
|
|
865
|
-
return this.getClientInstance().request({
|
|
866
|
-
path: "/rest/agile/1.0/board/{boardId}/properties",
|
|
867
|
-
method: "GET",
|
|
868
|
-
pathParams: {
|
|
869
|
-
boardId
|
|
870
|
-
}
|
|
871
|
-
}).then(this.getClientInstance().responseHandler({
|
|
872
|
-
200: {
|
|
873
|
-
"application/json": "json"
|
|
874
|
-
}
|
|
875
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getBoardPropertyKeys.response"))).then(commonHttpClient.getBody);
|
|
876
|
-
};
|
|
877
|
-
/**
|
|
878
|
-
* Get the board configuration. The response contains the following fields:
|
|
1152
|
+
* @returns Returns the requested issues, at the specified page of the results.
|
|
879
1153
|
*
|
|
880
|
-
*
|
|
881
|
-
*
|
|
882
|
-
*
|
|
883
|
-
*
|
|
884
|
-
*
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
*
|
|
889
|
-
*
|
|
1154
|
+
* example:
|
|
1155
|
+
* ```
|
|
1156
|
+
* {
|
|
1157
|
+
* "expand": "names,schema",
|
|
1158
|
+
* "isLast": true,
|
|
1159
|
+
* "issues": [
|
|
1160
|
+
* {
|
|
1161
|
+
* "expand": "",
|
|
1162
|
+
* "fields": {
|
|
1163
|
+
* "watcher": {
|
|
1164
|
+
* "isWatching": false,
|
|
1165
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
|
|
1166
|
+
* "watchCount": 1
|
|
1167
|
+
* },
|
|
1168
|
+
* "attachment": [
|
|
1169
|
+
* {
|
|
1170
|
+
* "author": {
|
|
1171
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1172
|
+
* "accountType": "atlassian",
|
|
1173
|
+
* "active": false,
|
|
1174
|
+
* "avatarUrls": {
|
|
1175
|
+
* "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
1176
|
+
* "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
1177
|
+
* "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
1178
|
+
* "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
1179
|
+
* },
|
|
1180
|
+
* "displayName": "Mia Krystof",
|
|
1181
|
+
* "key": "",
|
|
1182
|
+
* "name": "",
|
|
1183
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1184
|
+
* },
|
|
1185
|
+
* "content": "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10001",
|
|
1186
|
+
* "created": "2023-06-24T19:24:50.000+0000",
|
|
1187
|
+
* "filename": "debuglog.txt",
|
|
1188
|
+
* "id": 10001,
|
|
1189
|
+
* "mimeType": "text/plain",
|
|
1190
|
+
* "self": "https://your-domain.atlassian.net/rest/api/2/attachments/10001",
|
|
1191
|
+
* "size": 2460
|
|
1192
|
+
* }
|
|
1193
|
+
* ],
|
|
1194
|
+
* "sub-tasks": [
|
|
1195
|
+
* {
|
|
1196
|
+
* "id": "10000",
|
|
1197
|
+
* "outwardIssue": {
|
|
1198
|
+
* "fields": {
|
|
1199
|
+
* "status": {
|
|
1200
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1201
|
+
* "name": "Open"
|
|
1202
|
+
* }
|
|
1203
|
+
* },
|
|
1204
|
+
* "id": "10003",
|
|
1205
|
+
* "key": "ED-2",
|
|
1206
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
|
|
1207
|
+
* },
|
|
1208
|
+
* "type": {
|
|
1209
|
+
* "id": "10000",
|
|
1210
|
+
* "inward": "Parent",
|
|
1211
|
+
* "name": "",
|
|
1212
|
+
* "outward": "Sub-task"
|
|
1213
|
+
* }
|
|
1214
|
+
* }
|
|
1215
|
+
* ],
|
|
1216
|
+
* "description": "Main order flow broken",
|
|
1217
|
+
* "project": {
|
|
1218
|
+
* "avatarUrls": {
|
|
1219
|
+
* "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
|
|
1220
|
+
* "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
|
|
1221
|
+
* "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
|
|
1222
|
+
* "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
|
|
1223
|
+
* },
|
|
1224
|
+
* "id": "10000",
|
|
1225
|
+
* "insight": {
|
|
1226
|
+
* "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
|
|
1227
|
+
* "totalIssueCount": 100
|
|
1228
|
+
* },
|
|
1229
|
+
* "key": "EX",
|
|
1230
|
+
* "name": "Example",
|
|
1231
|
+
* "projectCategory": {
|
|
1232
|
+
* "description": "First Project Category",
|
|
1233
|
+
* "id": "10000",
|
|
1234
|
+
* "name": "FIRST",
|
|
1235
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
|
|
1236
|
+
* },
|
|
1237
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
|
|
1238
|
+
* "simplified": false,
|
|
1239
|
+
* "style": "classic"
|
|
1240
|
+
* },
|
|
1241
|
+
* "comment": [
|
|
1242
|
+
* {
|
|
1243
|
+
* "author": {
|
|
1244
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1245
|
+
* "active": false,
|
|
1246
|
+
* "displayName": "Mia Krystof",
|
|
1247
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1248
|
+
* },
|
|
1249
|
+
* "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
|
|
1250
|
+
* "created": "2021-01-17T12:34:00.000+0000",
|
|
1251
|
+
* "id": "10000",
|
|
1252
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
|
|
1253
|
+
* "updateAuthor": {
|
|
1254
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1255
|
+
* "active": false,
|
|
1256
|
+
* "displayName": "Mia Krystof",
|
|
1257
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1258
|
+
* },
|
|
1259
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
1260
|
+
* "visibility": {
|
|
1261
|
+
* "identifier": "Administrators",
|
|
1262
|
+
* "type": "role",
|
|
1263
|
+
* "value": "Administrators"
|
|
1264
|
+
* }
|
|
1265
|
+
* }
|
|
1266
|
+
* ],
|
|
1267
|
+
* "issuelinks": [
|
|
1268
|
+
* {
|
|
1269
|
+
* "id": "10001",
|
|
1270
|
+
* "outwardIssue": {
|
|
1271
|
+
* "fields": {
|
|
1272
|
+
* "status": {
|
|
1273
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1274
|
+
* "name": "Open"
|
|
1275
|
+
* }
|
|
1276
|
+
* },
|
|
1277
|
+
* "id": "10004L",
|
|
1278
|
+
* "key": "PR-2",
|
|
1279
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
|
|
1280
|
+
* },
|
|
1281
|
+
* "type": {
|
|
1282
|
+
* "id": "10000",
|
|
1283
|
+
* "inward": "depends on",
|
|
1284
|
+
* "name": "Dependent",
|
|
1285
|
+
* "outward": "is depended by"
|
|
1286
|
+
* }
|
|
1287
|
+
* },
|
|
1288
|
+
* {
|
|
1289
|
+
* "id": "10002",
|
|
1290
|
+
* "inwardIssue": {
|
|
1291
|
+
* "fields": {
|
|
1292
|
+
* "status": {
|
|
1293
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1294
|
+
* "name": "Open"
|
|
1295
|
+
* }
|
|
1296
|
+
* },
|
|
1297
|
+
* "id": "10004",
|
|
1298
|
+
* "key": "PR-3",
|
|
1299
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
|
|
1300
|
+
* },
|
|
1301
|
+
* "type": {
|
|
1302
|
+
* "id": "10000",
|
|
1303
|
+
* "inward": "depends on",
|
|
1304
|
+
* "name": "Dependent",
|
|
1305
|
+
* "outward": "is depended by"
|
|
1306
|
+
* }
|
|
1307
|
+
* }
|
|
1308
|
+
* ],
|
|
1309
|
+
* "worklog": [
|
|
1310
|
+
* {
|
|
1311
|
+
* "author": {
|
|
1312
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1313
|
+
* "active": false,
|
|
1314
|
+
* "displayName": "Mia Krystof",
|
|
1315
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1316
|
+
* },
|
|
1317
|
+
* "comment": "I did some work here.",
|
|
1318
|
+
* "id": "100028",
|
|
1319
|
+
* "issueId": "10002",
|
|
1320
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
|
|
1321
|
+
* "started": "2021-01-17T12:34:00.000+0000",
|
|
1322
|
+
* "timeSpent": "3h 20m",
|
|
1323
|
+
* "timeSpentSeconds": 12000,
|
|
1324
|
+
* "updateAuthor": {
|
|
1325
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1326
|
+
* "active": false,
|
|
1327
|
+
* "displayName": "Mia Krystof",
|
|
1328
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1329
|
+
* },
|
|
1330
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
1331
|
+
* "visibility": {
|
|
1332
|
+
* "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
|
|
1333
|
+
* "type": "group",
|
|
1334
|
+
* "value": "jira-developers"
|
|
1335
|
+
* }
|
|
1336
|
+
* }
|
|
1337
|
+
* ],
|
|
1338
|
+
* "updated": 1,
|
|
1339
|
+
* "timetracking": {
|
|
1340
|
+
* "originalEstimate": "10m",
|
|
1341
|
+
* "originalEstimateSeconds": 600,
|
|
1342
|
+
* "remainingEstimate": "3m",
|
|
1343
|
+
* "remainingEstimateSeconds": 200,
|
|
1344
|
+
* "timeSpent": "6m",
|
|
1345
|
+
* "timeSpentSeconds": 400
|
|
1346
|
+
* }
|
|
1347
|
+
* },
|
|
1348
|
+
* "id": "10002",
|
|
1349
|
+
* "key": "ED-1",
|
|
1350
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
|
|
1351
|
+
* }
|
|
1352
|
+
* ]
|
|
1353
|
+
* }
|
|
1354
|
+
* ```
|
|
1355
|
+
* @path GET `/rest/software/1.0/board/{boardId}/sprint/{sprintId}/issue`
|
|
1356
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-software-1-0-board-boardid-sprint-sprintid-issue-get
|
|
1357
|
+
* @param params
|
|
1358
|
+
*/
|
|
1359
|
+
this.getBoardIssuesForSprintJsis = ({ boardId, sprintId, nextPageToken, maxResults, reconcileIssues, jql, validateQuery, fields, expand }) => {
|
|
1360
|
+
return this.getClientInstance().request({
|
|
1361
|
+
path: "/rest/software/1.0/board/{boardId}/sprint/{sprintId}/issue",
|
|
1362
|
+
method: "GET",
|
|
1363
|
+
pathParams: {
|
|
1364
|
+
boardId,
|
|
1365
|
+
sprintId
|
|
1366
|
+
},
|
|
1367
|
+
query: {
|
|
1368
|
+
nextPageToken,
|
|
1369
|
+
maxResults,
|
|
1370
|
+
reconcileIssues,
|
|
1371
|
+
jql,
|
|
1372
|
+
validateQuery,
|
|
1373
|
+
fields,
|
|
1374
|
+
expand
|
|
1375
|
+
}
|
|
1376
|
+
}).then(this.getClientInstance().responseHandler({
|
|
1377
|
+
200: {
|
|
1378
|
+
"application/json": "json"
|
|
1379
|
+
}
|
|
1380
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getBoardIssuesForSprintJSIS.response"))).then(commonHttpClient.getBody);
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* Returns the value of the property with a given key from the board identified by
|
|
1384
|
+
* the provided id. The user who retrieves the property is required to have
|
|
1385
|
+
* permissions to view the board.
|
|
1386
|
+
*
|
|
1387
|
+
* @returns Returned if the board exists and the property was found.
|
|
1388
|
+
* @path GET `/rest/agile/1.0/board/{boardId}/properties/{propertyKey}`
|
|
1389
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-agile-1-0-board-boardid-properties-propertykey-get
|
|
1390
|
+
* @param params
|
|
1391
|
+
*/
|
|
1392
|
+
this.getBoardProperty = ({ boardId, propertyKey }) => {
|
|
1393
|
+
return this.getClientInstance().request({
|
|
1394
|
+
path: "/rest/agile/1.0/board/{boardId}/properties/{propertyKey}",
|
|
1395
|
+
method: "GET",
|
|
1396
|
+
pathParams: {
|
|
1397
|
+
boardId,
|
|
1398
|
+
propertyKey
|
|
1399
|
+
}
|
|
1400
|
+
}).then(this.getClientInstance().responseHandler({
|
|
1401
|
+
200: {
|
|
1402
|
+
"application/json": "json"
|
|
1403
|
+
}
|
|
1404
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getBoardProperty.response"))).then(commonHttpClient.getBody);
|
|
1405
|
+
};
|
|
1406
|
+
/**
|
|
1407
|
+
* Returns the keys of all properties for the board identified by the id. The user
|
|
1408
|
+
* who retrieves the property keys is required to have permissions to view the
|
|
1409
|
+
* board.
|
|
1410
|
+
*
|
|
1411
|
+
* @returns Returned if the board with given id exists.
|
|
1412
|
+
* @path GET `/rest/agile/1.0/board/{boardId}/properties`
|
|
1413
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-agile-1-0-board-boardid-properties-get
|
|
1414
|
+
* @param params
|
|
1415
|
+
*/
|
|
1416
|
+
this.getBoardPropertyKeys = ({ boardId }) => {
|
|
1417
|
+
return this.getClientInstance().request({
|
|
1418
|
+
path: "/rest/agile/1.0/board/{boardId}/properties",
|
|
1419
|
+
method: "GET",
|
|
1420
|
+
pathParams: {
|
|
1421
|
+
boardId
|
|
1422
|
+
}
|
|
1423
|
+
}).then(this.getClientInstance().responseHandler({
|
|
1424
|
+
200: {
|
|
1425
|
+
"application/json": "json"
|
|
1426
|
+
}
|
|
1427
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getBoardPropertyKeys.response"))).then(commonHttpClient.getBody);
|
|
1428
|
+
};
|
|
1429
|
+
/**
|
|
1430
|
+
* Get the board configuration. The response contains the following fields:
|
|
1431
|
+
*
|
|
1432
|
+
* * `id` \- ID of the board.
|
|
1433
|
+
* * `name` \- Name of the board.
|
|
1434
|
+
* * `filter` \- Reference to the filter used by the given board.
|
|
1435
|
+
* * `location` \- Reference to the container that the board is located in.
|
|
1436
|
+
* Includes the container type (Valid values: project, user).
|
|
1437
|
+
* * `subQuery` (Kanban only) - JQL subquery used by the given board.
|
|
1438
|
+
* * `columnConfig` \- The column configuration lists the columns for the board,
|
|
1439
|
+
* in the order defined in the column configuration. For each column, it shows the
|
|
1440
|
+
* issue status mapping as well as the constraint type (Valid values: none,
|
|
1441
|
+
* issueCount, issueCountExclSubs) for the min/max number of issues. Note, the
|
|
890
1442
|
* last column with statuses mapped to it is treated as the "Done" column, which
|
|
891
1443
|
* means that issues in that column will be marked as already completed.
|
|
892
1444
|
* * `estimation` (Scrum only) - Contains information about type of estimation
|
|
@@ -1051,27 +1603,673 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1051
1603
|
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-agile-1-0-board-boardid-features-get
|
|
1052
1604
|
* @param params
|
|
1053
1605
|
*/
|
|
1054
|
-
this.getFeaturesForBoard = ({ boardId }) => {
|
|
1606
|
+
this.getFeaturesForBoard = ({ boardId }) => {
|
|
1607
|
+
return this.getClientInstance().request({
|
|
1608
|
+
path: "/rest/agile/1.0/board/{boardId}/features",
|
|
1609
|
+
method: "GET",
|
|
1610
|
+
pathParams: {
|
|
1611
|
+
boardId
|
|
1612
|
+
}
|
|
1613
|
+
}).then(this.getClientInstance().responseHandler({
|
|
1614
|
+
200: {
|
|
1615
|
+
"application/json": "json"
|
|
1616
|
+
}
|
|
1617
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getFeaturesForBoard.response"))).then(commonHttpClient.getBody);
|
|
1618
|
+
};
|
|
1619
|
+
/**
|
|
1620
|
+
* Returns all issues from the board's backlog, for the given board ID. This only
|
|
1621
|
+
* includes issues that the user has permission to view. The backlog contains
|
|
1622
|
+
* incomplete issues that are not assigned to any future or active sprint. Note,
|
|
1623
|
+
* if the user does not have permission to view the board, no issues will be
|
|
1624
|
+
* returned at all. Issues returned from this resource include Agile fields, like
|
|
1625
|
+
* sprint, closedSprints, flagged, and epic. By default, the returned issues are
|
|
1626
|
+
* ordered by rank.
|
|
1627
|
+
*
|
|
1628
|
+
* @deprecated
|
|
1629
|
+
* @returns Returns the requested issues, at the specified page of the results.
|
|
1630
|
+
*
|
|
1631
|
+
* example:
|
|
1632
|
+
* ```
|
|
1633
|
+
* {
|
|
1634
|
+
* "expand": "names,schema",
|
|
1635
|
+
* "issues": [
|
|
1636
|
+
* {
|
|
1637
|
+
* "expand": "",
|
|
1638
|
+
* "fields": {
|
|
1639
|
+
* "flagged": true,
|
|
1640
|
+
* "sprint": {
|
|
1641
|
+
* "id": 37,
|
|
1642
|
+
* "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/13",
|
|
1643
|
+
* "state": "future",
|
|
1644
|
+
* "name": "sprint 2",
|
|
1645
|
+
* "goal": "sprint 2 goal"
|
|
1646
|
+
* },
|
|
1647
|
+
* "closedSprints": [
|
|
1648
|
+
* {
|
|
1649
|
+
* "id": 37,
|
|
1650
|
+
* "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
|
|
1651
|
+
* "state": "closed",
|
|
1652
|
+
* "name": "sprint 1",
|
|
1653
|
+
* "startDate": "2015-04-11T15:22:00.000+10:00",
|
|
1654
|
+
* "endDate": "2015-04-20T01:22:00.000+10:00",
|
|
1655
|
+
* "completeDate": "2015-04-20T11:04:00.000+10:00",
|
|
1656
|
+
* "goal": "sprint 1 goal"
|
|
1657
|
+
* }
|
|
1658
|
+
* ],
|
|
1659
|
+
* "description": "example bug report",
|
|
1660
|
+
* "project": {
|
|
1661
|
+
* "avatarUrls": {
|
|
1662
|
+
* "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
|
|
1663
|
+
* "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
|
|
1664
|
+
* "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
|
|
1665
|
+
* "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
|
|
1666
|
+
* },
|
|
1667
|
+
* "id": "10000",
|
|
1668
|
+
* "insight": {
|
|
1669
|
+
* "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
|
|
1670
|
+
* "totalIssueCount": 100
|
|
1671
|
+
* },
|
|
1672
|
+
* "key": "EX",
|
|
1673
|
+
* "name": "Example",
|
|
1674
|
+
* "projectCategory": {
|
|
1675
|
+
* "description": "First Project Category",
|
|
1676
|
+
* "id": "10000",
|
|
1677
|
+
* "name": "FIRST",
|
|
1678
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
|
|
1679
|
+
* },
|
|
1680
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
|
|
1681
|
+
* "simplified": false,
|
|
1682
|
+
* "style": "classic"
|
|
1683
|
+
* },
|
|
1684
|
+
* "comment": [
|
|
1685
|
+
* {
|
|
1686
|
+
* "author": {
|
|
1687
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1688
|
+
* "active": false,
|
|
1689
|
+
* "displayName": "Mia Krystof",
|
|
1690
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1691
|
+
* },
|
|
1692
|
+
* "body": {
|
|
1693
|
+
* "type": "doc",
|
|
1694
|
+
* "version": 1,
|
|
1695
|
+
* "content": [
|
|
1696
|
+
* {
|
|
1697
|
+
* "type": "paragraph",
|
|
1698
|
+
* "content": [
|
|
1699
|
+
* {
|
|
1700
|
+
* "type": "text",
|
|
1701
|
+
* "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
|
|
1702
|
+
* }
|
|
1703
|
+
* ]
|
|
1704
|
+
* }
|
|
1705
|
+
* ]
|
|
1706
|
+
* },
|
|
1707
|
+
* "created": "2021-01-17T12:34:00.000+0000",
|
|
1708
|
+
* "id": "10000",
|
|
1709
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
|
|
1710
|
+
* "updateAuthor": {
|
|
1711
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1712
|
+
* "active": false,
|
|
1713
|
+
* "displayName": "Mia Krystof",
|
|
1714
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1715
|
+
* },
|
|
1716
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
1717
|
+
* "visibility": {
|
|
1718
|
+
* "identifier": "Administrators",
|
|
1719
|
+
* "type": "role",
|
|
1720
|
+
* "value": "Administrators"
|
|
1721
|
+
* }
|
|
1722
|
+
* }
|
|
1723
|
+
* ],
|
|
1724
|
+
* "epic": {
|
|
1725
|
+
* "id": 37,
|
|
1726
|
+
* "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
|
|
1727
|
+
* "name": "epic 1",
|
|
1728
|
+
* "summary": "epic 1 summary",
|
|
1729
|
+
* "color": {
|
|
1730
|
+
* "key": "color_4"
|
|
1731
|
+
* },
|
|
1732
|
+
* "done": true
|
|
1733
|
+
* },
|
|
1734
|
+
* "worklog": [
|
|
1735
|
+
* {
|
|
1736
|
+
* "author": {
|
|
1737
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1738
|
+
* "active": false,
|
|
1739
|
+
* "displayName": "Mia Krystof",
|
|
1740
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1741
|
+
* },
|
|
1742
|
+
* "comment": {
|
|
1743
|
+
* "type": "doc",
|
|
1744
|
+
* "version": 1,
|
|
1745
|
+
* "content": [
|
|
1746
|
+
* {
|
|
1747
|
+
* "type": "paragraph",
|
|
1748
|
+
* "content": [
|
|
1749
|
+
* {
|
|
1750
|
+
* "type": "text",
|
|
1751
|
+
* "text": "I did some work here."
|
|
1752
|
+
* }
|
|
1753
|
+
* ]
|
|
1754
|
+
* }
|
|
1755
|
+
* ]
|
|
1756
|
+
* },
|
|
1757
|
+
* "id": "100028",
|
|
1758
|
+
* "issueId": "10002",
|
|
1759
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
|
|
1760
|
+
* "started": "2021-01-17T12:34:00.000+0000",
|
|
1761
|
+
* "timeSpent": "3h 20m",
|
|
1762
|
+
* "timeSpentSeconds": 12000,
|
|
1763
|
+
* "updateAuthor": {
|
|
1764
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1765
|
+
* "active": false,
|
|
1766
|
+
* "displayName": "Mia Krystof",
|
|
1767
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1768
|
+
* },
|
|
1769
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
1770
|
+
* "visibility": {
|
|
1771
|
+
* "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
|
|
1772
|
+
* "type": "group",
|
|
1773
|
+
* "value": "jira-developers"
|
|
1774
|
+
* }
|
|
1775
|
+
* }
|
|
1776
|
+
* ],
|
|
1777
|
+
* "updated": 1,
|
|
1778
|
+
* "timetracking": {
|
|
1779
|
+
* "originalEstimate": "10m",
|
|
1780
|
+
* "originalEstimateSeconds": 600,
|
|
1781
|
+
* "remainingEstimate": "3m",
|
|
1782
|
+
* "remainingEstimateSeconds": 200,
|
|
1783
|
+
* "timeSpent": "6m",
|
|
1784
|
+
* "timeSpentSeconds": 400
|
|
1785
|
+
* }
|
|
1786
|
+
* },
|
|
1787
|
+
* "id": "10001",
|
|
1788
|
+
* "key": "HSP-1",
|
|
1789
|
+
* "self": "https://your-domain.atlassian.net/rest/agile/1.0/board/92/issue/10001"
|
|
1790
|
+
* }
|
|
1791
|
+
* ],
|
|
1792
|
+
* "maxResults": 50,
|
|
1793
|
+
* "startAt": 0,
|
|
1794
|
+
* "total": 1
|
|
1795
|
+
* }
|
|
1796
|
+
* ```
|
|
1797
|
+
* @path GET `/rest/agile/1.0/board/{boardId}/backlog`
|
|
1798
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-agile-1-0-board-boardid-backlog-get
|
|
1799
|
+
* @param params
|
|
1800
|
+
*/
|
|
1801
|
+
this.getIssuesForBacklog = ({ boardId, startAt, maxResults, jql, validateQuery, fields, expand }) => {
|
|
1802
|
+
return this.getClientInstance().request({
|
|
1803
|
+
path: "/rest/agile/1.0/board/{boardId}/backlog",
|
|
1804
|
+
method: "GET",
|
|
1805
|
+
pathParams: {
|
|
1806
|
+
boardId
|
|
1807
|
+
},
|
|
1808
|
+
query: {
|
|
1809
|
+
startAt,
|
|
1810
|
+
maxResults,
|
|
1811
|
+
jql,
|
|
1812
|
+
validateQuery,
|
|
1813
|
+
fields,
|
|
1814
|
+
expand
|
|
1815
|
+
}
|
|
1816
|
+
}).then(this.getClientInstance().responseHandler({
|
|
1817
|
+
200: {
|
|
1818
|
+
"application/json": "json"
|
|
1819
|
+
}
|
|
1820
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getIssuesForBacklog.response"))).then(commonHttpClient.getBody);
|
|
1821
|
+
};
|
|
1822
|
+
/**
|
|
1823
|
+
* Returns all issues from the board's backlog, for the given board ID. Result
|
|
1824
|
+
* pagination is token based, using `nextPageToken` and `maxResults`. This only
|
|
1825
|
+
* includes issues that the user has permission to view. Note, if the user does
|
|
1826
|
+
* not have permission to view the board, no issues will be returned at all. The
|
|
1827
|
+
* backlog contains incomplete issues that are not assigned to any future or
|
|
1828
|
+
* active sprint. Issues returned from this resource include Software project
|
|
1829
|
+
* fields, like sprint, closedSprints, flagged, and epic. By default, the returned
|
|
1830
|
+
* issues are ordered by rank.
|
|
1831
|
+
*
|
|
1832
|
+
* @returns Returns the requested issues, at the specified page of the results.
|
|
1833
|
+
*
|
|
1834
|
+
* example:
|
|
1835
|
+
* ```
|
|
1836
|
+
* {
|
|
1837
|
+
* "expand": "names,schema",
|
|
1838
|
+
* "isLast": true,
|
|
1839
|
+
* "issues": [
|
|
1840
|
+
* {
|
|
1841
|
+
* "expand": "",
|
|
1842
|
+
* "fields": {
|
|
1843
|
+
* "watcher": {
|
|
1844
|
+
* "isWatching": false,
|
|
1845
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
|
|
1846
|
+
* "watchCount": 1
|
|
1847
|
+
* },
|
|
1848
|
+
* "attachment": [
|
|
1849
|
+
* {
|
|
1850
|
+
* "author": {
|
|
1851
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1852
|
+
* "accountType": "atlassian",
|
|
1853
|
+
* "active": false,
|
|
1854
|
+
* "avatarUrls": {
|
|
1855
|
+
* "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
1856
|
+
* "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
1857
|
+
* "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
1858
|
+
* "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
1859
|
+
* },
|
|
1860
|
+
* "displayName": "Mia Krystof",
|
|
1861
|
+
* "key": "",
|
|
1862
|
+
* "name": "",
|
|
1863
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1864
|
+
* },
|
|
1865
|
+
* "content": "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10001",
|
|
1866
|
+
* "created": "2023-06-24T19:24:50.000+0000",
|
|
1867
|
+
* "filename": "debuglog.txt",
|
|
1868
|
+
* "id": 10001,
|
|
1869
|
+
* "mimeType": "text/plain",
|
|
1870
|
+
* "self": "https://your-domain.atlassian.net/rest/api/2/attachments/10001",
|
|
1871
|
+
* "size": 2460
|
|
1872
|
+
* }
|
|
1873
|
+
* ],
|
|
1874
|
+
* "sub-tasks": [
|
|
1875
|
+
* {
|
|
1876
|
+
* "id": "10000",
|
|
1877
|
+
* "outwardIssue": {
|
|
1878
|
+
* "fields": {
|
|
1879
|
+
* "status": {
|
|
1880
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1881
|
+
* "name": "Open"
|
|
1882
|
+
* }
|
|
1883
|
+
* },
|
|
1884
|
+
* "id": "10003",
|
|
1885
|
+
* "key": "ED-2",
|
|
1886
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
|
|
1887
|
+
* },
|
|
1888
|
+
* "type": {
|
|
1889
|
+
* "id": "10000",
|
|
1890
|
+
* "inward": "Parent",
|
|
1891
|
+
* "name": "",
|
|
1892
|
+
* "outward": "Sub-task"
|
|
1893
|
+
* }
|
|
1894
|
+
* }
|
|
1895
|
+
* ],
|
|
1896
|
+
* "description": "Main order flow broken",
|
|
1897
|
+
* "project": {
|
|
1898
|
+
* "avatarUrls": {
|
|
1899
|
+
* "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
|
|
1900
|
+
* "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
|
|
1901
|
+
* "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
|
|
1902
|
+
* "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
|
|
1903
|
+
* },
|
|
1904
|
+
* "id": "10000",
|
|
1905
|
+
* "insight": {
|
|
1906
|
+
* "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
|
|
1907
|
+
* "totalIssueCount": 100
|
|
1908
|
+
* },
|
|
1909
|
+
* "key": "EX",
|
|
1910
|
+
* "name": "Example",
|
|
1911
|
+
* "projectCategory": {
|
|
1912
|
+
* "description": "First Project Category",
|
|
1913
|
+
* "id": "10000",
|
|
1914
|
+
* "name": "FIRST",
|
|
1915
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
|
|
1916
|
+
* },
|
|
1917
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
|
|
1918
|
+
* "simplified": false,
|
|
1919
|
+
* "style": "classic"
|
|
1920
|
+
* },
|
|
1921
|
+
* "comment": [
|
|
1922
|
+
* {
|
|
1923
|
+
* "author": {
|
|
1924
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1925
|
+
* "active": false,
|
|
1926
|
+
* "displayName": "Mia Krystof",
|
|
1927
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1928
|
+
* },
|
|
1929
|
+
* "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
|
|
1930
|
+
* "created": "2021-01-17T12:34:00.000+0000",
|
|
1931
|
+
* "id": "10000",
|
|
1932
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
|
|
1933
|
+
* "updateAuthor": {
|
|
1934
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1935
|
+
* "active": false,
|
|
1936
|
+
* "displayName": "Mia Krystof",
|
|
1937
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1938
|
+
* },
|
|
1939
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
1940
|
+
* "visibility": {
|
|
1941
|
+
* "identifier": "Administrators",
|
|
1942
|
+
* "type": "role",
|
|
1943
|
+
* "value": "Administrators"
|
|
1944
|
+
* }
|
|
1945
|
+
* }
|
|
1946
|
+
* ],
|
|
1947
|
+
* "issuelinks": [
|
|
1948
|
+
* {
|
|
1949
|
+
* "id": "10001",
|
|
1950
|
+
* "outwardIssue": {
|
|
1951
|
+
* "fields": {
|
|
1952
|
+
* "status": {
|
|
1953
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1954
|
+
* "name": "Open"
|
|
1955
|
+
* }
|
|
1956
|
+
* },
|
|
1957
|
+
* "id": "10004L",
|
|
1958
|
+
* "key": "PR-2",
|
|
1959
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
|
|
1960
|
+
* },
|
|
1961
|
+
* "type": {
|
|
1962
|
+
* "id": "10000",
|
|
1963
|
+
* "inward": "depends on",
|
|
1964
|
+
* "name": "Dependent",
|
|
1965
|
+
* "outward": "is depended by"
|
|
1966
|
+
* }
|
|
1967
|
+
* },
|
|
1968
|
+
* {
|
|
1969
|
+
* "id": "10002",
|
|
1970
|
+
* "inwardIssue": {
|
|
1971
|
+
* "fields": {
|
|
1972
|
+
* "status": {
|
|
1973
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
1974
|
+
* "name": "Open"
|
|
1975
|
+
* }
|
|
1976
|
+
* },
|
|
1977
|
+
* "id": "10004",
|
|
1978
|
+
* "key": "PR-3",
|
|
1979
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
|
|
1980
|
+
* },
|
|
1981
|
+
* "type": {
|
|
1982
|
+
* "id": "10000",
|
|
1983
|
+
* "inward": "depends on",
|
|
1984
|
+
* "name": "Dependent",
|
|
1985
|
+
* "outward": "is depended by"
|
|
1986
|
+
* }
|
|
1987
|
+
* }
|
|
1988
|
+
* ],
|
|
1989
|
+
* "worklog": [
|
|
1990
|
+
* {
|
|
1991
|
+
* "author": {
|
|
1992
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
1993
|
+
* "active": false,
|
|
1994
|
+
* "displayName": "Mia Krystof",
|
|
1995
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1996
|
+
* },
|
|
1997
|
+
* "comment": "I did some work here.",
|
|
1998
|
+
* "id": "100028",
|
|
1999
|
+
* "issueId": "10002",
|
|
2000
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
|
|
2001
|
+
* "started": "2021-01-17T12:34:00.000+0000",
|
|
2002
|
+
* "timeSpent": "3h 20m",
|
|
2003
|
+
* "timeSpentSeconds": 12000,
|
|
2004
|
+
* "updateAuthor": {
|
|
2005
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
2006
|
+
* "active": false,
|
|
2007
|
+
* "displayName": "Mia Krystof",
|
|
2008
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
2009
|
+
* },
|
|
2010
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
2011
|
+
* "visibility": {
|
|
2012
|
+
* "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
|
|
2013
|
+
* "type": "group",
|
|
2014
|
+
* "value": "jira-developers"
|
|
2015
|
+
* }
|
|
2016
|
+
* }
|
|
2017
|
+
* ],
|
|
2018
|
+
* "updated": 1,
|
|
2019
|
+
* "timetracking": {
|
|
2020
|
+
* "originalEstimate": "10m",
|
|
2021
|
+
* "originalEstimateSeconds": 600,
|
|
2022
|
+
* "remainingEstimate": "3m",
|
|
2023
|
+
* "remainingEstimateSeconds": 200,
|
|
2024
|
+
* "timeSpent": "6m",
|
|
2025
|
+
* "timeSpentSeconds": 400
|
|
2026
|
+
* }
|
|
2027
|
+
* },
|
|
2028
|
+
* "id": "10002",
|
|
2029
|
+
* "key": "ED-1",
|
|
2030
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
|
|
2031
|
+
* }
|
|
2032
|
+
* ]
|
|
2033
|
+
* }
|
|
2034
|
+
* ```
|
|
2035
|
+
* @path GET `/rest/software/1.0/board/{boardId}/backlog`
|
|
2036
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-software-1-0-board-boardid-backlog-get
|
|
2037
|
+
* @param params
|
|
2038
|
+
*/
|
|
2039
|
+
this.getIssuesForBacklogJsis = ({ boardId, nextPageToken, maxResults, reconcileIssues, jql, validateQuery, fields, expand }) => {
|
|
2040
|
+
return this.getClientInstance().request({
|
|
2041
|
+
path: "/rest/software/1.0/board/{boardId}/backlog",
|
|
2042
|
+
method: "GET",
|
|
2043
|
+
pathParams: {
|
|
2044
|
+
boardId
|
|
2045
|
+
},
|
|
2046
|
+
query: {
|
|
2047
|
+
nextPageToken,
|
|
2048
|
+
maxResults,
|
|
2049
|
+
reconcileIssues,
|
|
2050
|
+
jql,
|
|
2051
|
+
validateQuery,
|
|
2052
|
+
fields,
|
|
2053
|
+
expand
|
|
2054
|
+
}
|
|
2055
|
+
}).then(this.getClientInstance().responseHandler({
|
|
2056
|
+
200: {
|
|
2057
|
+
"application/json": "json"
|
|
2058
|
+
}
|
|
2059
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getIssuesForBacklogJSIS.response"))).then(commonHttpClient.getBody);
|
|
2060
|
+
};
|
|
2061
|
+
/**
|
|
2062
|
+
* Returns all issues from a board, for a given board ID. This only includes
|
|
2063
|
+
* issues that the user has permission to view. An issue belongs to the board if
|
|
2064
|
+
* its status is mapped to the board's column. Epic issues do not belongs to the
|
|
2065
|
+
* scrum boards. Note, if the user does not have permission to view the board, no
|
|
2066
|
+
* issues will be returned at all. Issues returned from this resource include
|
|
2067
|
+
* Agile fields, like sprint, closedSprints, flagged, and epic. By default, the
|
|
2068
|
+
* returned issues are ordered by rank.
|
|
2069
|
+
*
|
|
2070
|
+
* @deprecated
|
|
2071
|
+
* @returns Returns the requested issues, at the specified page of the results.
|
|
2072
|
+
*
|
|
2073
|
+
* example:
|
|
2074
|
+
* ```
|
|
2075
|
+
* {
|
|
2076
|
+
* "expand": "names,schema",
|
|
2077
|
+
* "issues": [
|
|
2078
|
+
* {
|
|
2079
|
+
* "expand": "",
|
|
2080
|
+
* "fields": {
|
|
2081
|
+
* "flagged": true,
|
|
2082
|
+
* "sprint": {
|
|
2083
|
+
* "id": 37,
|
|
2084
|
+
* "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/13",
|
|
2085
|
+
* "state": "future",
|
|
2086
|
+
* "name": "sprint 2",
|
|
2087
|
+
* "goal": "sprint 2 goal"
|
|
2088
|
+
* },
|
|
2089
|
+
* "closedSprints": [
|
|
2090
|
+
* {
|
|
2091
|
+
* "id": 37,
|
|
2092
|
+
* "self": "https://your-domain.atlassian.net/rest/agile/1.0/sprint/23",
|
|
2093
|
+
* "state": "closed",
|
|
2094
|
+
* "name": "sprint 1",
|
|
2095
|
+
* "startDate": "2015-04-11T15:22:00.000+10:00",
|
|
2096
|
+
* "endDate": "2015-04-20T01:22:00.000+10:00",
|
|
2097
|
+
* "completeDate": "2015-04-20T11:04:00.000+10:00",
|
|
2098
|
+
* "goal": "sprint 1 goal"
|
|
2099
|
+
* }
|
|
2100
|
+
* ],
|
|
2101
|
+
* "description": "example bug report",
|
|
2102
|
+
* "project": {
|
|
2103
|
+
* "avatarUrls": {
|
|
2104
|
+
* "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
|
|
2105
|
+
* "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
|
|
2106
|
+
* "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000",
|
|
2107
|
+
* "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000"
|
|
2108
|
+
* },
|
|
2109
|
+
* "id": "10000",
|
|
2110
|
+
* "insight": {
|
|
2111
|
+
* "lastIssueUpdateTime": "2021-04-22T05:37:05.000+0000",
|
|
2112
|
+
* "totalIssueCount": 100
|
|
2113
|
+
* },
|
|
2114
|
+
* "key": "EX",
|
|
2115
|
+
* "name": "Example",
|
|
2116
|
+
* "projectCategory": {
|
|
2117
|
+
* "description": "First Project Category",
|
|
2118
|
+
* "id": "10000",
|
|
2119
|
+
* "name": "FIRST",
|
|
2120
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000"
|
|
2121
|
+
* },
|
|
2122
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
|
|
2123
|
+
* "simplified": false,
|
|
2124
|
+
* "style": "classic"
|
|
2125
|
+
* },
|
|
2126
|
+
* "comment": [
|
|
2127
|
+
* {
|
|
2128
|
+
* "author": {
|
|
2129
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
2130
|
+
* "active": false,
|
|
2131
|
+
* "displayName": "Mia Krystof",
|
|
2132
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
2133
|
+
* },
|
|
2134
|
+
* "body": {
|
|
2135
|
+
* "type": "doc",
|
|
2136
|
+
* "version": 1,
|
|
2137
|
+
* "content": [
|
|
2138
|
+
* {
|
|
2139
|
+
* "type": "paragraph",
|
|
2140
|
+
* "content": [
|
|
2141
|
+
* {
|
|
2142
|
+
* "type": "text",
|
|
2143
|
+
* "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
|
|
2144
|
+
* }
|
|
2145
|
+
* ]
|
|
2146
|
+
* }
|
|
2147
|
+
* ]
|
|
2148
|
+
* },
|
|
2149
|
+
* "created": "2021-01-17T12:34:00.000+0000",
|
|
2150
|
+
* "id": "10000",
|
|
2151
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
|
|
2152
|
+
* "updateAuthor": {
|
|
2153
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
2154
|
+
* "active": false,
|
|
2155
|
+
* "displayName": "Mia Krystof",
|
|
2156
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
2157
|
+
* },
|
|
2158
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
2159
|
+
* "visibility": {
|
|
2160
|
+
* "identifier": "Administrators",
|
|
2161
|
+
* "type": "role",
|
|
2162
|
+
* "value": "Administrators"
|
|
2163
|
+
* }
|
|
2164
|
+
* }
|
|
2165
|
+
* ],
|
|
2166
|
+
* "epic": {
|
|
2167
|
+
* "id": 37,
|
|
2168
|
+
* "self": "https://your-domain.atlassian.net/rest/agile/1.0/epic/23",
|
|
2169
|
+
* "name": "epic 1",
|
|
2170
|
+
* "summary": "epic 1 summary",
|
|
2171
|
+
* "color": {
|
|
2172
|
+
* "key": "color_4"
|
|
2173
|
+
* },
|
|
2174
|
+
* "done": true
|
|
2175
|
+
* },
|
|
2176
|
+
* "worklog": [
|
|
2177
|
+
* {
|
|
2178
|
+
* "author": {
|
|
2179
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
2180
|
+
* "active": false,
|
|
2181
|
+
* "displayName": "Mia Krystof",
|
|
2182
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
2183
|
+
* },
|
|
2184
|
+
* "comment": {
|
|
2185
|
+
* "type": "doc",
|
|
2186
|
+
* "version": 1,
|
|
2187
|
+
* "content": [
|
|
2188
|
+
* {
|
|
2189
|
+
* "type": "paragraph",
|
|
2190
|
+
* "content": [
|
|
2191
|
+
* {
|
|
2192
|
+
* "type": "text",
|
|
2193
|
+
* "text": "I did some work here."
|
|
2194
|
+
* }
|
|
2195
|
+
* ]
|
|
2196
|
+
* }
|
|
2197
|
+
* ]
|
|
2198
|
+
* },
|
|
2199
|
+
* "id": "100028",
|
|
2200
|
+
* "issueId": "10002",
|
|
2201
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
|
|
2202
|
+
* "started": "2021-01-17T12:34:00.000+0000",
|
|
2203
|
+
* "timeSpent": "3h 20m",
|
|
2204
|
+
* "timeSpentSeconds": 12000,
|
|
2205
|
+
* "updateAuthor": {
|
|
2206
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
2207
|
+
* "active": false,
|
|
2208
|
+
* "displayName": "Mia Krystof",
|
|
2209
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
2210
|
+
* },
|
|
2211
|
+
* "updated": "2021-01-18T23:45:00.000+0000",
|
|
2212
|
+
* "visibility": {
|
|
2213
|
+
* "identifier": "276f955c-63d7-42c8-9520-92d01dca0625",
|
|
2214
|
+
* "type": "group",
|
|
2215
|
+
* "value": "jira-developers"
|
|
2216
|
+
* }
|
|
2217
|
+
* }
|
|
2218
|
+
* ],
|
|
2219
|
+
* "updated": 1,
|
|
2220
|
+
* "timetracking": {
|
|
2221
|
+
* "originalEstimate": "10m",
|
|
2222
|
+
* "originalEstimateSeconds": 600,
|
|
2223
|
+
* "remainingEstimate": "3m",
|
|
2224
|
+
* "remainingEstimateSeconds": 200,
|
|
2225
|
+
* "timeSpent": "6m",
|
|
2226
|
+
* "timeSpentSeconds": 400
|
|
2227
|
+
* }
|
|
2228
|
+
* },
|
|
2229
|
+
* "id": "10001",
|
|
2230
|
+
* "key": "HSP-1",
|
|
2231
|
+
* "self": "https://your-domain.atlassian.net/rest/agile/1.0/board/92/issue/10001"
|
|
2232
|
+
* }
|
|
2233
|
+
* ],
|
|
2234
|
+
* "maxResults": 50,
|
|
2235
|
+
* "startAt": 0,
|
|
2236
|
+
* "total": 1
|
|
2237
|
+
* }
|
|
2238
|
+
* ```
|
|
2239
|
+
* @path GET `/rest/agile/1.0/board/{boardId}/issue`
|
|
2240
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-agile-1-0-board-boardid-issue-get
|
|
2241
|
+
* @param params
|
|
2242
|
+
*/
|
|
2243
|
+
this.getIssuesForBoard = ({ boardId, startAt, maxResults, jql, validateQuery, fields, expand }) => {
|
|
1055
2244
|
return this.getClientInstance().request({
|
|
1056
|
-
path: "/rest/agile/1.0/board/{boardId}/
|
|
2245
|
+
path: "/rest/agile/1.0/board/{boardId}/issue",
|
|
1057
2246
|
method: "GET",
|
|
1058
2247
|
pathParams: {
|
|
1059
2248
|
boardId
|
|
2249
|
+
},
|
|
2250
|
+
query: {
|
|
2251
|
+
startAt,
|
|
2252
|
+
maxResults,
|
|
2253
|
+
jql,
|
|
2254
|
+
validateQuery,
|
|
2255
|
+
fields,
|
|
2256
|
+
expand
|
|
1060
2257
|
}
|
|
1061
2258
|
}).then(this.getClientInstance().responseHandler({
|
|
1062
2259
|
200: {
|
|
1063
2260
|
"application/json": "json"
|
|
1064
2261
|
}
|
|
1065
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.
|
|
2262
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getIssuesForBoard.response"))).then(commonHttpClient.getBody);
|
|
1066
2263
|
};
|
|
1067
2264
|
/**
|
|
1068
|
-
* Returns all issues from
|
|
1069
|
-
*
|
|
1070
|
-
*
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
*
|
|
1074
|
-
*
|
|
2265
|
+
* Returns all issues from a board, for a given board ID. Result pagination is
|
|
2266
|
+
* token based, using `nextPageToken` and `maxResults`. This only includes issues
|
|
2267
|
+
* that the user has permission to view. Note, if the user does not have
|
|
2268
|
+
* permission to view the board, no issues will be returned at all. An issue
|
|
2269
|
+
* belongs to the board if its status is mapped to the board's column. Epic issues
|
|
2270
|
+
* do not belong to scrum boards. Issues returned from this resource include
|
|
2271
|
+
* Software project fields, like sprint, closedSprints, flagged, and epic. By
|
|
2272
|
+
* default, the returned issues are ordered by rank.
|
|
1075
2273
|
*
|
|
1076
2274
|
* @returns Returns the requested issues, at the specified page of the results.
|
|
1077
2275
|
*
|
|
@@ -1079,31 +2277,65 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1079
2277
|
* ```
|
|
1080
2278
|
* {
|
|
1081
2279
|
* "expand": "names,schema",
|
|
2280
|
+
* "isLast": true,
|
|
1082
2281
|
* "issues": [
|
|
1083
2282
|
* {
|
|
1084
2283
|
* "expand": "",
|
|
1085
2284
|
* "fields": {
|
|
1086
|
-
* "
|
|
1087
|
-
*
|
|
1088
|
-
* "
|
|
1089
|
-
* "
|
|
1090
|
-
* "state": "future",
|
|
1091
|
-
* "name": "sprint 2",
|
|
1092
|
-
* "goal": "sprint 2 goal"
|
|
2285
|
+
* "watcher": {
|
|
2286
|
+
* "isWatching": false,
|
|
2287
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
|
|
2288
|
+
* "watchCount": 1
|
|
1093
2289
|
* },
|
|
1094
|
-
* "
|
|
2290
|
+
* "attachment": [
|
|
1095
2291
|
* {
|
|
1096
|
-
* "
|
|
1097
|
-
*
|
|
1098
|
-
*
|
|
1099
|
-
*
|
|
1100
|
-
*
|
|
1101
|
-
*
|
|
1102
|
-
*
|
|
1103
|
-
*
|
|
2292
|
+
* "author": {
|
|
2293
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
2294
|
+
* "accountType": "atlassian",
|
|
2295
|
+
* "active": false,
|
|
2296
|
+
* "avatarUrls": {
|
|
2297
|
+
* "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
2298
|
+
* "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
2299
|
+
* "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
2300
|
+
* "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
2301
|
+
* },
|
|
2302
|
+
* "displayName": "Mia Krystof",
|
|
2303
|
+
* "key": "",
|
|
2304
|
+
* "name": "",
|
|
2305
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
2306
|
+
* },
|
|
2307
|
+
* "content": "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10001",
|
|
2308
|
+
* "created": "2023-06-24T19:24:50.000+0000",
|
|
2309
|
+
* "filename": "debuglog.txt",
|
|
2310
|
+
* "id": 10001,
|
|
2311
|
+
* "mimeType": "text/plain",
|
|
2312
|
+
* "self": "https://your-domain.atlassian.net/rest/api/2/attachments/10001",
|
|
2313
|
+
* "size": 2460
|
|
1104
2314
|
* }
|
|
1105
2315
|
* ],
|
|
1106
|
-
* "
|
|
2316
|
+
* "sub-tasks": [
|
|
2317
|
+
* {
|
|
2318
|
+
* "id": "10000",
|
|
2319
|
+
* "outwardIssue": {
|
|
2320
|
+
* "fields": {
|
|
2321
|
+
* "status": {
|
|
2322
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
2323
|
+
* "name": "Open"
|
|
2324
|
+
* }
|
|
2325
|
+
* },
|
|
2326
|
+
* "id": "10003",
|
|
2327
|
+
* "key": "ED-2",
|
|
2328
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
|
|
2329
|
+
* },
|
|
2330
|
+
* "type": {
|
|
2331
|
+
* "id": "10000",
|
|
2332
|
+
* "inward": "Parent",
|
|
2333
|
+
* "name": "",
|
|
2334
|
+
* "outward": "Sub-task"
|
|
2335
|
+
* }
|
|
2336
|
+
* }
|
|
2337
|
+
* ],
|
|
2338
|
+
* "description": "Main order flow broken",
|
|
1107
2339
|
* "project": {
|
|
1108
2340
|
* "avatarUrls": {
|
|
1109
2341
|
* "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
|
|
@@ -1136,21 +2368,7 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1136
2368
|
* "displayName": "Mia Krystof",
|
|
1137
2369
|
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1138
2370
|
* },
|
|
1139
|
-
* "body":
|
|
1140
|
-
* "type": "doc",
|
|
1141
|
-
* "version": 1,
|
|
1142
|
-
* "content": [
|
|
1143
|
-
* {
|
|
1144
|
-
* "type": "paragraph",
|
|
1145
|
-
* "content": [
|
|
1146
|
-
* {
|
|
1147
|
-
* "type": "text",
|
|
1148
|
-
* "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
|
|
1149
|
-
* }
|
|
1150
|
-
* ]
|
|
1151
|
-
* }
|
|
1152
|
-
* ]
|
|
1153
|
-
* },
|
|
2371
|
+
* "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
|
|
1154
2372
|
* "created": "2021-01-17T12:34:00.000+0000",
|
|
1155
2373
|
* "id": "10000",
|
|
1156
2374
|
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
|
|
@@ -1168,16 +2386,48 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1168
2386
|
* }
|
|
1169
2387
|
* }
|
|
1170
2388
|
* ],
|
|
1171
|
-
* "
|
|
1172
|
-
*
|
|
1173
|
-
*
|
|
1174
|
-
*
|
|
1175
|
-
*
|
|
1176
|
-
*
|
|
1177
|
-
*
|
|
2389
|
+
* "issuelinks": [
|
|
2390
|
+
* {
|
|
2391
|
+
* "id": "10001",
|
|
2392
|
+
* "outwardIssue": {
|
|
2393
|
+
* "fields": {
|
|
2394
|
+
* "status": {
|
|
2395
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
2396
|
+
* "name": "Open"
|
|
2397
|
+
* }
|
|
2398
|
+
* },
|
|
2399
|
+
* "id": "10004L",
|
|
2400
|
+
* "key": "PR-2",
|
|
2401
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
|
|
2402
|
+
* },
|
|
2403
|
+
* "type": {
|
|
2404
|
+
* "id": "10000",
|
|
2405
|
+
* "inward": "depends on",
|
|
2406
|
+
* "name": "Dependent",
|
|
2407
|
+
* "outward": "is depended by"
|
|
2408
|
+
* }
|
|
1178
2409
|
* },
|
|
1179
|
-
*
|
|
1180
|
-
*
|
|
2410
|
+
* {
|
|
2411
|
+
* "id": "10002",
|
|
2412
|
+
* "inwardIssue": {
|
|
2413
|
+
* "fields": {
|
|
2414
|
+
* "status": {
|
|
2415
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
2416
|
+
* "name": "Open"
|
|
2417
|
+
* }
|
|
2418
|
+
* },
|
|
2419
|
+
* "id": "10004",
|
|
2420
|
+
* "key": "PR-3",
|
|
2421
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
|
|
2422
|
+
* },
|
|
2423
|
+
* "type": {
|
|
2424
|
+
* "id": "10000",
|
|
2425
|
+
* "inward": "depends on",
|
|
2426
|
+
* "name": "Dependent",
|
|
2427
|
+
* "outward": "is depended by"
|
|
2428
|
+
* }
|
|
2429
|
+
* }
|
|
2430
|
+
* ],
|
|
1181
2431
|
* "worklog": [
|
|
1182
2432
|
* {
|
|
1183
2433
|
* "author": {
|
|
@@ -1186,21 +2436,7 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1186
2436
|
* "displayName": "Mia Krystof",
|
|
1187
2437
|
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1188
2438
|
* },
|
|
1189
|
-
* "comment":
|
|
1190
|
-
* "type": "doc",
|
|
1191
|
-
* "version": 1,
|
|
1192
|
-
* "content": [
|
|
1193
|
-
* {
|
|
1194
|
-
* "type": "paragraph",
|
|
1195
|
-
* "content": [
|
|
1196
|
-
* {
|
|
1197
|
-
* "type": "text",
|
|
1198
|
-
* "text": "I did some work here."
|
|
1199
|
-
* }
|
|
1200
|
-
* ]
|
|
1201
|
-
* }
|
|
1202
|
-
* ]
|
|
1203
|
-
* },
|
|
2439
|
+
* "comment": "I did some work here.",
|
|
1204
2440
|
* "id": "100028",
|
|
1205
2441
|
* "issueId": "10002",
|
|
1206
2442
|
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
|
|
@@ -1231,30 +2467,28 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1231
2467
|
* "timeSpentSeconds": 400
|
|
1232
2468
|
* }
|
|
1233
2469
|
* },
|
|
1234
|
-
* "id": "
|
|
1235
|
-
* "key": "
|
|
1236
|
-
* "self": "https://your-domain.atlassian.net/rest/
|
|
2470
|
+
* "id": "10002",
|
|
2471
|
+
* "key": "ED-1",
|
|
2472
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
|
|
1237
2473
|
* }
|
|
1238
|
-
* ]
|
|
1239
|
-
* "maxResults": 50,
|
|
1240
|
-
* "startAt": 0,
|
|
1241
|
-
* "total": 1
|
|
2474
|
+
* ]
|
|
1242
2475
|
* }
|
|
1243
2476
|
* ```
|
|
1244
|
-
* @path GET `/rest/
|
|
1245
|
-
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-
|
|
2477
|
+
* @path GET `/rest/software/1.0/board/{boardId}/issue`
|
|
2478
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-software-1-0-board-boardid-issue-get
|
|
1246
2479
|
* @param params
|
|
1247
2480
|
*/
|
|
1248
|
-
this.
|
|
2481
|
+
this.getIssuesForBoardJsis = ({ boardId, nextPageToken, maxResults, reconcileIssues, jql, validateQuery, fields, expand }) => {
|
|
1249
2482
|
return this.getClientInstance().request({
|
|
1250
|
-
path: "/rest/
|
|
2483
|
+
path: "/rest/software/1.0/board/{boardId}/issue",
|
|
1251
2484
|
method: "GET",
|
|
1252
2485
|
pathParams: {
|
|
1253
2486
|
boardId
|
|
1254
2487
|
},
|
|
1255
2488
|
query: {
|
|
1256
|
-
|
|
2489
|
+
nextPageToken,
|
|
1257
2490
|
maxResults,
|
|
2491
|
+
reconcileIssues,
|
|
1258
2492
|
jql,
|
|
1259
2493
|
validateQuery,
|
|
1260
2494
|
fields,
|
|
@@ -1264,17 +2498,15 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1264
2498
|
200: {
|
|
1265
2499
|
"application/json": "json"
|
|
1266
2500
|
}
|
|
1267
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.
|
|
2501
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getIssuesForBoardJSIS.response"))).then(commonHttpClient.getBody);
|
|
1268
2502
|
};
|
|
1269
2503
|
/**
|
|
1270
|
-
* Returns all issues
|
|
1271
|
-
* issues that the user has permission to view.
|
|
1272
|
-
*
|
|
1273
|
-
*
|
|
1274
|
-
* issues will be returned at all. Issues returned from this resource include
|
|
1275
|
-
* Agile fields, like sprint, closedSprints, flagged, and epic. By default, the
|
|
1276
|
-
* returned issues are ordered by rank.
|
|
2504
|
+
* Returns all issues that do not belong to any epic on a board, for a given board
|
|
2505
|
+
* ID. This only includes issues that the user has permission to view. Issues
|
|
2506
|
+
* returned from this resource include Agile fields, like sprint, closedSprints,
|
|
2507
|
+
* flagged, and epic. By default, the returned issues are ordered by rank.
|
|
1277
2508
|
*
|
|
2509
|
+
* @deprecated
|
|
1278
2510
|
* @returns Returns the requested issues, at the specified page of the results.
|
|
1279
2511
|
*
|
|
1280
2512
|
* example:
|
|
@@ -1443,13 +2675,13 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1443
2675
|
* "total": 1
|
|
1444
2676
|
* }
|
|
1445
2677
|
* ```
|
|
1446
|
-
* @path GET `/rest/agile/1.0/board/{boardId}/issue`
|
|
1447
|
-
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-agile-1-0-board-boardid-issue-get
|
|
2678
|
+
* @path GET `/rest/agile/1.0/board/{boardId}/epic/none/issue`
|
|
2679
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-agile-1-0-board-boardid-epic-none-issue-get
|
|
1448
2680
|
* @param params
|
|
1449
2681
|
*/
|
|
1450
|
-
this.
|
|
2682
|
+
this.getIssuesWithoutEpicForBoard = ({ boardId, startAt, maxResults, jql, validateQuery, fields, expand }) => {
|
|
1451
2683
|
return this.getClientInstance().request({
|
|
1452
|
-
path: "/rest/agile/1.0/board/{boardId}/issue",
|
|
2684
|
+
path: "/rest/agile/1.0/board/{boardId}/epic/none/issue",
|
|
1453
2685
|
method: "GET",
|
|
1454
2686
|
pathParams: {
|
|
1455
2687
|
boardId
|
|
@@ -1466,13 +2698,16 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1466
2698
|
200: {
|
|
1467
2699
|
"application/json": "json"
|
|
1468
2700
|
}
|
|
1469
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.
|
|
2701
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getIssuesWithoutEpicForBoard.response"))).then(commonHttpClient.getBody);
|
|
1470
2702
|
};
|
|
1471
2703
|
/**
|
|
1472
2704
|
* Returns all issues that do not belong to any epic on a board, for a given board
|
|
1473
|
-
* ID.
|
|
1474
|
-
*
|
|
1475
|
-
*
|
|
2705
|
+
* ID. Result pagination is token based, using `nextPageToken` and `maxResults`.
|
|
2706
|
+
* This only includes issues that the user has permission to view. Note, if the
|
|
2707
|
+
* user does not have permission to view the board, no issues will be returned at
|
|
2708
|
+
* all. Issues returned from this resource include Software project fields, like
|
|
2709
|
+
* sprint, closedSprints, flagged, and epic. By default, the returned issues are
|
|
2710
|
+
* ordered by rank.
|
|
1476
2711
|
*
|
|
1477
2712
|
* @returns Returns the requested issues, at the specified page of the results.
|
|
1478
2713
|
*
|
|
@@ -1480,31 +2715,65 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1480
2715
|
* ```
|
|
1481
2716
|
* {
|
|
1482
2717
|
* "expand": "names,schema",
|
|
2718
|
+
* "isLast": true,
|
|
1483
2719
|
* "issues": [
|
|
1484
2720
|
* {
|
|
1485
2721
|
* "expand": "",
|
|
1486
2722
|
* "fields": {
|
|
1487
|
-
* "
|
|
1488
|
-
*
|
|
1489
|
-
* "
|
|
1490
|
-
* "
|
|
1491
|
-
* "state": "future",
|
|
1492
|
-
* "name": "sprint 2",
|
|
1493
|
-
* "goal": "sprint 2 goal"
|
|
2723
|
+
* "watcher": {
|
|
2724
|
+
* "isWatching": false,
|
|
2725
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/EX-1/watchers",
|
|
2726
|
+
* "watchCount": 1
|
|
1494
2727
|
* },
|
|
1495
|
-
* "
|
|
2728
|
+
* "attachment": [
|
|
1496
2729
|
* {
|
|
1497
|
-
* "
|
|
1498
|
-
*
|
|
1499
|
-
*
|
|
1500
|
-
*
|
|
1501
|
-
*
|
|
1502
|
-
*
|
|
1503
|
-
*
|
|
1504
|
-
*
|
|
2730
|
+
* "author": {
|
|
2731
|
+
* "accountId": "5b10a2844c20165700ede21g",
|
|
2732
|
+
* "accountType": "atlassian",
|
|
2733
|
+
* "active": false,
|
|
2734
|
+
* "avatarUrls": {
|
|
2735
|
+
* "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
|
|
2736
|
+
* "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
|
|
2737
|
+
* "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
|
|
2738
|
+
* "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
|
|
2739
|
+
* },
|
|
2740
|
+
* "displayName": "Mia Krystof",
|
|
2741
|
+
* "key": "",
|
|
2742
|
+
* "name": "",
|
|
2743
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
2744
|
+
* },
|
|
2745
|
+
* "content": "https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10001",
|
|
2746
|
+
* "created": "2023-06-24T19:24:50.000+0000",
|
|
2747
|
+
* "filename": "debuglog.txt",
|
|
2748
|
+
* "id": 10001,
|
|
2749
|
+
* "mimeType": "text/plain",
|
|
2750
|
+
* "self": "https://your-domain.atlassian.net/rest/api/2/attachments/10001",
|
|
2751
|
+
* "size": 2460
|
|
1505
2752
|
* }
|
|
1506
2753
|
* ],
|
|
1507
|
-
* "
|
|
2754
|
+
* "sub-tasks": [
|
|
2755
|
+
* {
|
|
2756
|
+
* "id": "10000",
|
|
2757
|
+
* "outwardIssue": {
|
|
2758
|
+
* "fields": {
|
|
2759
|
+
* "status": {
|
|
2760
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
2761
|
+
* "name": "Open"
|
|
2762
|
+
* }
|
|
2763
|
+
* },
|
|
2764
|
+
* "id": "10003",
|
|
2765
|
+
* "key": "ED-2",
|
|
2766
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/ED-2"
|
|
2767
|
+
* },
|
|
2768
|
+
* "type": {
|
|
2769
|
+
* "id": "10000",
|
|
2770
|
+
* "inward": "Parent",
|
|
2771
|
+
* "name": "",
|
|
2772
|
+
* "outward": "Sub-task"
|
|
2773
|
+
* }
|
|
2774
|
+
* }
|
|
2775
|
+
* ],
|
|
2776
|
+
* "description": "Main order flow broken",
|
|
1508
2777
|
* "project": {
|
|
1509
2778
|
* "avatarUrls": {
|
|
1510
2779
|
* "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
|
|
@@ -1537,21 +2806,7 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1537
2806
|
* "displayName": "Mia Krystof",
|
|
1538
2807
|
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1539
2808
|
* },
|
|
1540
|
-
* "body":
|
|
1541
|
-
* "type": "doc",
|
|
1542
|
-
* "version": 1,
|
|
1543
|
-
* "content": [
|
|
1544
|
-
* {
|
|
1545
|
-
* "type": "paragraph",
|
|
1546
|
-
* "content": [
|
|
1547
|
-
* {
|
|
1548
|
-
* "type": "text",
|
|
1549
|
-
* "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."
|
|
1550
|
-
* }
|
|
1551
|
-
* ]
|
|
1552
|
-
* }
|
|
1553
|
-
* ]
|
|
1554
|
-
* },
|
|
2809
|
+
* "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
|
|
1555
2810
|
* "created": "2021-01-17T12:34:00.000+0000",
|
|
1556
2811
|
* "id": "10000",
|
|
1557
2812
|
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
|
|
@@ -1569,16 +2824,48 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1569
2824
|
* }
|
|
1570
2825
|
* }
|
|
1571
2826
|
* ],
|
|
1572
|
-
* "
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
*
|
|
1576
|
-
*
|
|
1577
|
-
*
|
|
1578
|
-
*
|
|
2827
|
+
* "issuelinks": [
|
|
2828
|
+
* {
|
|
2829
|
+
* "id": "10001",
|
|
2830
|
+
* "outwardIssue": {
|
|
2831
|
+
* "fields": {
|
|
2832
|
+
* "status": {
|
|
2833
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
2834
|
+
* "name": "Open"
|
|
2835
|
+
* }
|
|
2836
|
+
* },
|
|
2837
|
+
* "id": "10004L",
|
|
2838
|
+
* "key": "PR-2",
|
|
2839
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-2"
|
|
2840
|
+
* },
|
|
2841
|
+
* "type": {
|
|
2842
|
+
* "id": "10000",
|
|
2843
|
+
* "inward": "depends on",
|
|
2844
|
+
* "name": "Dependent",
|
|
2845
|
+
* "outward": "is depended by"
|
|
2846
|
+
* }
|
|
1579
2847
|
* },
|
|
1580
|
-
*
|
|
1581
|
-
*
|
|
2848
|
+
* {
|
|
2849
|
+
* "id": "10002",
|
|
2850
|
+
* "inwardIssue": {
|
|
2851
|
+
* "fields": {
|
|
2852
|
+
* "status": {
|
|
2853
|
+
* "iconUrl": "https://your-domain.atlassian.net/images/icons/statuses/open.png",
|
|
2854
|
+
* "name": "Open"
|
|
2855
|
+
* }
|
|
2856
|
+
* },
|
|
2857
|
+
* "id": "10004",
|
|
2858
|
+
* "key": "PR-3",
|
|
2859
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/PR-3"
|
|
2860
|
+
* },
|
|
2861
|
+
* "type": {
|
|
2862
|
+
* "id": "10000",
|
|
2863
|
+
* "inward": "depends on",
|
|
2864
|
+
* "name": "Dependent",
|
|
2865
|
+
* "outward": "is depended by"
|
|
2866
|
+
* }
|
|
2867
|
+
* }
|
|
2868
|
+
* ],
|
|
1582
2869
|
* "worklog": [
|
|
1583
2870
|
* {
|
|
1584
2871
|
* "author": {
|
|
@@ -1587,21 +2874,7 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1587
2874
|
* "displayName": "Mia Krystof",
|
|
1588
2875
|
* "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
|
|
1589
2876
|
* },
|
|
1590
|
-
* "comment":
|
|
1591
|
-
* "type": "doc",
|
|
1592
|
-
* "version": 1,
|
|
1593
|
-
* "content": [
|
|
1594
|
-
* {
|
|
1595
|
-
* "type": "paragraph",
|
|
1596
|
-
* "content": [
|
|
1597
|
-
* {
|
|
1598
|
-
* "type": "text",
|
|
1599
|
-
* "text": "I did some work here."
|
|
1600
|
-
* }
|
|
1601
|
-
* ]
|
|
1602
|
-
* }
|
|
1603
|
-
* ]
|
|
1604
|
-
* },
|
|
2877
|
+
* "comment": "I did some work here.",
|
|
1605
2878
|
* "id": "100028",
|
|
1606
2879
|
* "issueId": "10002",
|
|
1607
2880
|
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/worklog/10000",
|
|
@@ -1632,30 +2905,28 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1632
2905
|
* "timeSpentSeconds": 400
|
|
1633
2906
|
* }
|
|
1634
2907
|
* },
|
|
1635
|
-
* "id": "
|
|
1636
|
-
* "key": "
|
|
1637
|
-
* "self": "https://your-domain.atlassian.net/rest/
|
|
2908
|
+
* "id": "10002",
|
|
2909
|
+
* "key": "ED-1",
|
|
2910
|
+
* "self": "https://your-domain.atlassian.net/rest/api/3/issue/10002"
|
|
1638
2911
|
* }
|
|
1639
|
-
* ]
|
|
1640
|
-
* "maxResults": 50,
|
|
1641
|
-
* "startAt": 0,
|
|
1642
|
-
* "total": 1
|
|
2912
|
+
* ]
|
|
1643
2913
|
* }
|
|
1644
2914
|
* ```
|
|
1645
|
-
* @path GET `/rest/
|
|
1646
|
-
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-
|
|
2915
|
+
* @path GET `/rest/software/1.0/board/{boardId}/epic/none/issue`
|
|
2916
|
+
* @see https://developer.atlassian.com/cloud/jira/software/rest/api-group-board#api-rest-software-1-0-board-boardid-epic-none-issue-get
|
|
1647
2917
|
* @param params
|
|
1648
2918
|
*/
|
|
1649
|
-
this.
|
|
2919
|
+
this.getIssuesWithoutEpicForBoardJsis = ({ boardId, nextPageToken, maxResults, reconcileIssues, jql, validateQuery, fields, expand }) => {
|
|
1650
2920
|
return this.getClientInstance().request({
|
|
1651
|
-
path: "/rest/
|
|
2921
|
+
path: "/rest/software/1.0/board/{boardId}/epic/none/issue",
|
|
1652
2922
|
method: "GET",
|
|
1653
2923
|
pathParams: {
|
|
1654
2924
|
boardId
|
|
1655
2925
|
},
|
|
1656
2926
|
query: {
|
|
1657
|
-
|
|
2927
|
+
nextPageToken,
|
|
1658
2928
|
maxResults,
|
|
2929
|
+
reconcileIssues,
|
|
1659
2930
|
jql,
|
|
1660
2931
|
validateQuery,
|
|
1661
2932
|
fields,
|
|
@@ -1665,7 +2936,7 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
1665
2936
|
200: {
|
|
1666
2937
|
"application/json": "json"
|
|
1667
2938
|
}
|
|
1668
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.
|
|
2939
|
+
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("BoardService.getIssuesWithoutEpicForBoardJSIS.response"))).then(commonHttpClient.getBody);
|
|
1669
2940
|
};
|
|
1670
2941
|
/**
|
|
1671
2942
|
* Returns all projects that are associated with the board, for the given board
|
|
@@ -2107,6 +3378,41 @@ class BoardService extends CommonHttpService_1.CommonHttpService {
|
|
|
2107
3378
|
values: zod_1.z.array(validationSchemaStorage_1.validationSchemaStorage.lazy("BoardFilterBean")).optional()
|
|
2108
3379
|
}).strict()
|
|
2109
3380
|
}).describe("BoardService.getBoardByFilterId.response"));
|
|
3381
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("BoardService.getIssuesForBacklogJSIS.response", zod_1.z.object({
|
|
3382
|
+
status: zod_1.z.literal(200),
|
|
3383
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
3384
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SoftwareIssueResults")
|
|
3385
|
+
}).describe("BoardService.getIssuesForBacklogJSIS.response"));
|
|
3386
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("BoardService.getApproximateIssueCountForBacklog.response", zod_1.z.object({
|
|
3387
|
+
status: zod_1.z.literal(200),
|
|
3388
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
3389
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("IssueCountBean")
|
|
3390
|
+
}).describe("BoardService.getApproximateIssueCountForBacklog.response"));
|
|
3391
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("BoardService.getBoardIssuesForEpicJSIS.response", zod_1.z.object({
|
|
3392
|
+
status: zod_1.z.literal(200),
|
|
3393
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
3394
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SoftwareIssueResults")
|
|
3395
|
+
}).describe("BoardService.getBoardIssuesForEpicJSIS.response"));
|
|
3396
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("BoardService.getIssuesWithoutEpicForBoardJSIS.response", zod_1.z.object({
|
|
3397
|
+
status: zod_1.z.literal(200),
|
|
3398
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
3399
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SoftwareIssueResults")
|
|
3400
|
+
}).describe("BoardService.getIssuesWithoutEpicForBoardJSIS.response"));
|
|
3401
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("BoardService.getIssuesForBoardJSIS.response", zod_1.z.object({
|
|
3402
|
+
status: zod_1.z.literal(200),
|
|
3403
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
3404
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SoftwareIssueResults")
|
|
3405
|
+
}).describe("BoardService.getIssuesForBoardJSIS.response"));
|
|
3406
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("BoardService.getApproximateIssueCountForBoard.response", zod_1.z.object({
|
|
3407
|
+
status: zod_1.z.literal(200),
|
|
3408
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
3409
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("IssueCountBean")
|
|
3410
|
+
}).describe("BoardService.getApproximateIssueCountForBoard.response"));
|
|
3411
|
+
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("BoardService.getBoardIssuesForSprintJSIS.response", zod_1.z.object({
|
|
3412
|
+
status: zod_1.z.literal(200),
|
|
3413
|
+
mediaType: zod_1.z.literal("application/json"),
|
|
3414
|
+
body: validationSchemaStorage_1.validationSchemaStorage.lazy("SoftwareIssueResults")
|
|
3415
|
+
}).describe("BoardService.getBoardIssuesForSprintJSIS.response"));
|
|
2110
3416
|
validationSchemaStorage_1.validationSchemaStorage.registerOnce([board_1.registerBoardValidationSchemas, common_1.registerCommonValidationSchemas]);
|
|
2111
3417
|
}
|
|
2112
3418
|
}
|