@itentialopensource/adapter-jira 1.7.4 → 1.7.5

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.
Files changed (183) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +7365 -0
  4. package/CHANGELOG.md +8 -0
  5. package/CODE_OF_CONDUCT.md +12 -17
  6. package/CONTRIBUTING.md +88 -74
  7. package/ENHANCE.md +69 -0
  8. package/PROPERTIES.md +641 -0
  9. package/README.md +225 -502
  10. package/SUMMARY.md +9 -0
  11. package/SYSTEMINFO.md +11 -0
  12. package/TROUBLESHOOT.md +47 -0
  13. package/adapter.js +10820 -58
  14. package/adapterBase.js +1030 -248
  15. package/entities/.generic/action.json +110 -5
  16. package/entities/.generic/schema.json +6 -1
  17. package/entities/Avatars/action.json +63 -0
  18. package/entities/Avatars/schema.json +4 -1
  19. package/entities/Dashboards/action.json +80 -0
  20. package/entities/Dashboards/mockdatafiles/copyDashboard-default.json +13 -0
  21. package/entities/Dashboards/mockdatafiles/createDashboard-default.json +13 -0
  22. package/entities/Dashboards/mockdatafiles/updateDashboard-default.json +13 -0
  23. package/entities/Dashboards/schema.json +5 -1
  24. package/entities/Groups/action.json +21 -0
  25. package/entities/Groups/mockdatafiles/bulkGetGroups-default.json +16 -0
  26. package/entities/Groups/schema.json +2 -1
  27. package/entities/InstanceInformation/action.json +25 -0
  28. package/entities/InstanceInformation/mockdatafiles/getLicense-default.json +20 -0
  29. package/entities/InstanceInformation/schema.json +19 -0
  30. package/entities/IssueCustomFieldConfigurationApps/action.json +45 -0
  31. package/entities/IssueCustomFieldConfigurationApps/mockdatafiles/getCustomFieldConfiguration-default.json +34 -0
  32. package/entities/IssueCustomFieldConfigurationApps/schema.json +20 -0
  33. package/entities/IssueCustomFieldContexts/action.json +268 -0
  34. package/entities/IssueCustomFieldContexts/mockdatafiles/createCustomFieldContext-default.json +9 -0
  35. package/entities/IssueCustomFieldContexts/mockdatafiles/getContextsForField-default.json +22 -0
  36. package/entities/IssueCustomFieldContexts/mockdatafiles/getCustomFieldContextsForProjectsAndIssueTypes-default.json +23 -0
  37. package/entities/IssueCustomFieldContexts/mockdatafiles/getDefaultValues-default.json +22 -0
  38. package/entities/IssueCustomFieldContexts/mockdatafiles/getIssueTypeMappingsForContexts-default.json +20 -0
  39. package/entities/IssueCustomFieldContexts/mockdatafiles/getProjectContextMapping-default.json +16 -0
  40. package/entities/IssueCustomFieldContexts/schema.json +31 -0
  41. package/entities/IssueCustomFieldOptions/action.json +105 -0
  42. package/entities/IssueCustomFieldOptions/mockdatafiles/createCustomFieldOption-default.json +20 -0
  43. package/entities/IssueCustomFieldOptions/mockdatafiles/getOptionsForContext-default.json +26 -0
  44. package/entities/IssueCustomFieldOptions/mockdatafiles/updateCustomFieldOption-default.json +19 -0
  45. package/entities/IssueCustomFieldOptions/schema.json +23 -0
  46. package/entities/IssueCustomFieldValuesApps/action.json +44 -0
  47. package/entities/IssueCustomFieldValuesApps/schema.json +20 -0
  48. package/entities/IssueFieldConfigurations/action.json +309 -0
  49. package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfiguration-default.json +5 -0
  50. package/entities/IssueFieldConfigurations/mockdatafiles/createFieldConfigurationScheme-default.json +5 -0
  51. package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurationSchemes-default.json +23 -0
  52. package/entities/IssueFieldConfigurations/mockdatafiles/getAllFieldConfigurations-default.json +19 -0
  53. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationItems-default.json +19 -0
  54. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeMappings-default.json +33 -0
  55. package/entities/IssueFieldConfigurations/mockdatafiles/getFieldConfigurationSchemeProjectMapping-default.json +26 -0
  56. package/entities/IssueFieldConfigurations/schema.json +33 -0
  57. package/entities/IssueTypeSchemes/action.json +207 -0
  58. package/entities/IssueTypeSchemes/mockdatafiles/createIssueTypeScheme-default.json +3 -0
  59. package/entities/IssueTypeSchemes/mockdatafiles/getAllIssueTypeSchemes-default.json +26 -0
  60. package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemeForProjects-default.json +44 -0
  61. package/entities/IssueTypeSchemes/mockdatafiles/getIssueTypeSchemesMapping-default.json +24 -0
  62. package/entities/IssueTypeSchemes/schema.json +28 -0
  63. package/entities/IssueTypeScreenSchemes/action.json +228 -0
  64. package/entities/IssueTypeScreenSchemes/mockdatafiles/createIssueTypeScreenScheme-default.json +3 -0
  65. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeMappings-default.json +28 -0
  66. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemeProjectAssociations-default.json +19 -0
  67. package/entities/IssueTypeScreenSchemes/mockdatafiles/getIssueTypeScreenSchemes-default.json +18 -0
  68. package/entities/IssueTypeScreenSchemes/mockdatafiles/getProjectsForIssueTypeScreenScheme-default.json +27 -0
  69. package/entities/IssueTypeScreenSchemes/schema.json +29 -0
  70. package/entities/Issueattachments/action.json +42 -0
  71. package/entities/Issueattachments/schema.json +3 -1
  72. package/entities/Issuefields/action.json +122 -0
  73. package/entities/Issuefields/mockdatafiles/getContextsForFieldDeprecated-default.json +12 -0
  74. package/entities/Issuefields/mockdatafiles/getFieldsPaginated-default.json +46 -0
  75. package/entities/Issuefields/schema.json +7 -1
  76. package/entities/Issueproperties/action.json +40 -0
  77. package/entities/Issueproperties/schema.json +3 -1
  78. package/entities/Issues/action.json +45 -0
  79. package/entities/Issues/mockdatafiles/getChangeLogsByIds-default.json +65 -0
  80. package/entities/Issues/mockdatafiles/getEvents-default.json +10 -0
  81. package/entities/Issues/schema.json +20 -0
  82. package/entities/Issuesearch/action.json +20 -0
  83. package/entities/Issuesearch/mockdatafiles/matchIssues-default.json +29 -0
  84. package/entities/Issuesearch/schema.json +2 -1
  85. package/entities/Issuesecuritylevel/action.json +21 -0
  86. package/entities/Issuesecuritylevel/mockdatafiles/getIssueSecurityLevelMembers-default.json +46 -0
  87. package/entities/Issuesecuritylevel/schema.json +2 -1
  88. package/entities/Issuetypes/action.json +21 -0
  89. package/entities/Issuetypes/mockdatafiles/getIssueTypesForProject-default.json +39 -0
  90. package/entities/Issuetypes/schema.json +2 -1
  91. package/entities/Issuewatchers/action.json +20 -0
  92. package/entities/Issuewatchers/mockdatafiles/getIsWatchingIssueBulk-default.json +7 -0
  93. package/entities/Issuewatchers/schema.json +2 -1
  94. package/entities/JQL/action.json +40 -0
  95. package/entities/JQL/mockdatafiles/getAutoCompletePost-default.json +89 -0
  96. package/entities/JQL/mockdatafiles/parseJqlQueries-default.json +119 -0
  97. package/entities/JQL/schema.json +3 -1
  98. package/entities/Jiraexpressions/action.json +20 -0
  99. package/entities/Jiraexpressions/mockdatafiles/analyseExpression-default.json +47 -0
  100. package/entities/Jiraexpressions/schema.json +2 -1
  101. package/entities/Labels/action.json +25 -0
  102. package/entities/Labels/mockdatafiles/getAllLabels-default.json +10 -0
  103. package/entities/Labels/schema.json +19 -0
  104. package/entities/ProjectEmail/action.json +45 -0
  105. package/entities/ProjectEmail/mockdatafiles/getProjectEmail-default.json +6 -0
  106. package/entities/ProjectEmail/schema.json +20 -0
  107. package/entities/ProjectFeatures/action.json +45 -0
  108. package/entities/ProjectFeatures/mockdatafiles/getFeaturesForProject-default.json +24 -0
  109. package/entities/ProjectFeatures/mockdatafiles/toggleFeatureForProject-default.json +24 -0
  110. package/entities/ProjectFeatures/schema.json +20 -0
  111. package/entities/Projects/action.json +102 -0
  112. package/entities/Projects/mockdatafiles/getHierarchy-default.json +50 -0
  113. package/entities/Projects/mockdatafiles/getRecent-default.json +50 -0
  114. package/entities/Projects/mockdatafiles/restore-default.json +139 -0
  115. package/entities/Projects/schema.json +6 -1
  116. package/entities/Projecttypes/action.json +21 -0
  117. package/entities/Projecttypes/mockdatafiles/getAllAccessibleProjectTypes-default.json +16 -0
  118. package/entities/Projecttypes/schema.json +2 -1
  119. package/entities/ScreenSchemes/action.json +85 -0
  120. package/entities/ScreenSchemes/mockdatafiles/createScreenScheme-default.json +3 -0
  121. package/entities/ScreenSchemes/mockdatafiles/getScreenSchemes-default.json +28 -0
  122. package/entities/ScreenSchemes/schema.json +22 -0
  123. package/entities/Screens/action.json +81 -0
  124. package/entities/Screens/mockdatafiles/createScreen-default.json +5 -0
  125. package/entities/Screens/mockdatafiles/getScreensForField-default.json +17 -0
  126. package/entities/Screens/mockdatafiles/updateScreen-default.json +5 -0
  127. package/entities/Screens/schema.json +5 -1
  128. package/entities/Users/action.json +84 -0
  129. package/entities/Users/mockdatafiles/getAllUsers-default.json +32 -0
  130. package/entities/Users/mockdatafiles/getAllUsersDefault-default.json +32 -0
  131. package/entities/Users/mockdatafiles/getUserEmail-default.json +1 -0
  132. package/entities/Users/schema.json +5 -1
  133. package/entities/Webhooks/action.json +106 -0
  134. package/entities/Webhooks/mockdatafiles/getDynamicWebhooksForApp-default.json +40 -0
  135. package/entities/Webhooks/mockdatafiles/getFailedWebhooks-default.json +17 -0
  136. package/entities/Webhooks/mockdatafiles/refreshWebhooks-default.json +3 -0
  137. package/entities/Webhooks/mockdatafiles/registerDynamicWebhooks-default.json +15 -0
  138. package/entities/Webhooks/schema.json +23 -0
  139. package/entities/WorkflowSchemeProjectAssociations/action.json +45 -0
  140. package/entities/WorkflowSchemeProjectAssociations/mockdatafiles/getWorkflowSchemeProjectAssociations-default.json +21 -0
  141. package/entities/WorkflowSchemeProjectAssociations/schema.json +20 -0
  142. package/entities/WorkflowTransitionRules/action.json +65 -0
  143. package/entities/WorkflowTransitionRules/mockdatafiles/deleteWorkflowTransitionRuleConfigurations-default.json +34 -0
  144. package/entities/WorkflowTransitionRules/mockdatafiles/getWorkflowTransitionRuleConfigurations-default.json +56 -0
  145. package/entities/WorkflowTransitionRules/mockdatafiles/updateWorkflowTransitionRuleConfigurations-default.json +34 -0
  146. package/entities/WorkflowTransitionRules/schema.json +21 -0
  147. package/entities/Workflows/action.json +61 -0
  148. package/entities/Workflows/mockdatafiles/createWorkflow-default.json +4 -0
  149. package/entities/Workflows/mockdatafiles/getWorkflowsPaginated-default.json +140 -0
  150. package/entities/Workflows/schema.json +4 -1
  151. package/entities/Workflowschemedrafts/action.json +20 -0
  152. package/entities/Workflowschemedrafts/schema.json +2 -1
  153. package/entities/Workflowschemes/action.json +21 -0
  154. package/entities/Workflowschemes/mockdatafiles/getAllWorkflowSchemes-default.json +30 -0
  155. package/entities/Workflowschemes/schema.json +2 -1
  156. package/error.json +12 -0
  157. package/package.json +21 -13
  158. package/pronghorn.json +33339 -5948
  159. package/propertiesDecorators.json +14 -0
  160. package/propertiesSchema.json +436 -0
  161. package/refs?service=git-upload-pack +0 -0
  162. package/report/adapterInfo.json +10 -0
  163. package/report/updateReport1659707107792.json +120 -0
  164. package/sampleProperties.json +95 -3
  165. package/test/integration/adapterTestBasicGet.js +2 -2
  166. package/test/integration/adapterTestIntegration.js +3633 -106
  167. package/test/unit/adapterBaseTestUnit.js +35 -27
  168. package/test/unit/adapterTestUnit.js +4767 -115
  169. package/utils/adapterInfo.js +206 -0
  170. package/utils/addAuth.js +94 -0
  171. package/utils/basicGet.js +1 -14
  172. package/utils/entitiesToDB.js +179 -0
  173. package/utils/methodDocumentor.js +225 -0
  174. package/utils/modify.js +1 -1
  175. package/utils/packModificationScript.js +1 -1
  176. package/utils/patches2bundledDeps.js +90 -0
  177. package/utils/pre-commit.sh +5 -0
  178. package/utils/removeHooks.js +20 -0
  179. package/utils/tbScript.js +43 -22
  180. package/utils/tbUtils.js +126 -29
  181. package/utils/testRunner.js +16 -16
  182. package/utils/troubleshootingAdapter.js +2 -26
  183. package/versions.json +142 -0
@@ -0,0 +1,50 @@
1
+ {
2
+ "projectId": 10030,
3
+ "hierarchy": [
4
+ {
5
+ "entityId": "02daf660-edec-49ae-b991-3738a36c8495",
6
+ "level": 0,
7
+ "name": "Base",
8
+ "issueTypes": [
9
+ {
10
+ "id": 10008,
11
+ "entityId": "aa355209-2212-4307-9de0-61d56390a685",
12
+ "name": "Story",
13
+ "avatarId": 10324
14
+ },
15
+ {
16
+ "id": 10001,
17
+ "entityId": "e04497f1-6d4b-4fc4-9c13-434f0960388f",
18
+ "name": "Bug",
19
+ "avatarId": 10324
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "entityId": "080569b3-9ff3-476b-9e13-76088d79ea19",
25
+ "level": 1,
26
+ "name": "Epic",
27
+ "issueTypes": [
28
+ {
29
+ "id": 10007,
30
+ "entityId": "c49f4995-37b1-473d-a1e7-f1aff7dac75f",
31
+ "name": "Epic",
32
+ "avatarId": 10179
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "entityId": "1c389290-25d9-42d9-9bd1-7276f7b1a14b",
38
+ "level": -1,
39
+ "name": "Subtask",
40
+ "issueTypes": [
41
+ {
42
+ "id": 10009,
43
+ "entityId": "70a62f06-b437-49f9-bc37-c290871bb011",
44
+ "name": "Subtask",
45
+ "avatarId": 10573
46
+ }
47
+ ]
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
4
+ "id": "10000",
5
+ "key": "EX",
6
+ "name": "Example",
7
+ "avatarUrls": {
8
+ "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000",
9
+ "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
10
+ "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
11
+ "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000"
12
+ },
13
+ "projectCategory": {
14
+ "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000",
15
+ "id": "10000",
16
+ "name": "FIRST",
17
+ "description": "First Project Category"
18
+ },
19
+ "simplified": false,
20
+ "style": "classic",
21
+ "insight": {
22
+ "totalIssueCount": 100,
23
+ "lastIssueUpdateTime": "2021-12-31T03:47:11.150+0000"
24
+ }
25
+ },
26
+ {
27
+ "self": "https://your-domain.atlassian.net/rest/api/3/project/ABC",
28
+ "id": "10001",
29
+ "key": "ABC",
30
+ "name": "Alphabetical",
31
+ "avatarUrls": {
32
+ "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10001",
33
+ "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10001",
34
+ "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10001",
35
+ "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10001"
36
+ },
37
+ "projectCategory": {
38
+ "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000",
39
+ "id": "10000",
40
+ "name": "FIRST",
41
+ "description": "First Project Category"
42
+ },
43
+ "simplified": false,
44
+ "style": "classic",
45
+ "insight": {
46
+ "totalIssueCount": 100,
47
+ "lastIssueUpdateTime": "2021-12-31T03:47:11.150+0000"
48
+ }
49
+ }
50
+ ]
@@ -0,0 +1,139 @@
1
+ {
2
+ "self": "https://your-domain.atlassian.net/rest/api/3/project/EX",
3
+ "id": "10000",
4
+ "key": "EX",
5
+ "description": "This project was created as an example for REST.",
6
+ "lead": {
7
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
8
+ "key": "",
9
+ "accountId": "5b10a2844c20165700ede21g",
10
+ "accountType": "atlassian",
11
+ "name": "",
12
+ "avatarUrls": {
13
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
14
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
15
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
16
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
17
+ },
18
+ "displayName": "Mia Krystof",
19
+ "active": false
20
+ },
21
+ "components": [
22
+ {
23
+ "self": "https://your-domain.atlassian.net/rest/api/3/component/10000",
24
+ "id": "10000",
25
+ "name": "Component 1",
26
+ "description": "This is a Jira component",
27
+ "lead": {
28
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
29
+ "key": "",
30
+ "accountId": "5b10a2844c20165700ede21g",
31
+ "accountType": "atlassian",
32
+ "name": "",
33
+ "avatarUrls": {
34
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
35
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
36
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
37
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
38
+ },
39
+ "displayName": "Mia Krystof",
40
+ "active": false
41
+ },
42
+ "assigneeType": "PROJECT_LEAD",
43
+ "assignee": {
44
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
45
+ "key": "",
46
+ "accountId": "5b10a2844c20165700ede21g",
47
+ "accountType": "atlassian",
48
+ "name": "",
49
+ "avatarUrls": {
50
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
51
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
52
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
53
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
54
+ },
55
+ "displayName": "Mia Krystof",
56
+ "active": false
57
+ },
58
+ "realAssigneeType": "PROJECT_LEAD",
59
+ "realAssignee": {
60
+ "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
61
+ "key": "",
62
+ "accountId": "5b10a2844c20165700ede21g",
63
+ "accountType": "atlassian",
64
+ "name": "",
65
+ "avatarUrls": {
66
+ "48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
67
+ "24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
68
+ "16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
69
+ "32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
70
+ },
71
+ "displayName": "Mia Krystof",
72
+ "active": false
73
+ },
74
+ "isAssigneeTypeValid": false,
75
+ "project": "HSP",
76
+ "projectId": 10000
77
+ }
78
+ ],
79
+ "issueTypes": [
80
+ {
81
+ "self": "https://your-domain.atlassian.net/rest/api/3/issueType/3",
82
+ "id": "3",
83
+ "description": "A task that needs to be done.",
84
+ "iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
85
+ "name": "Task",
86
+ "subtask": false,
87
+ "avatarId": 1,
88
+ "hierarchyLevel": 0
89
+ },
90
+ {
91
+ "self": "https://your-domain.atlassian.net/rest/api/3/issueType/1",
92
+ "id": "1",
93
+ "description": "A problem with the software.",
94
+ "iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype\",",
95
+ "name": "Bug",
96
+ "subtask": false,
97
+ "avatarId": 10002,
98
+ "entityId": "9d7dd6f7-e8b6-4247-954b-7b2c9b2a5ba2",
99
+ "hierarchyLevel": 0,
100
+ "scope": {
101
+ "type": "PROJECT",
102
+ "project": {
103
+ "id": "10000",
104
+ "key": "KEY",
105
+ "name": "Next Gen Project"
106
+ }
107
+ }
108
+ }
109
+ ],
110
+ "url": "https://www.example.com",
111
+ "email": "from-jira@example.com",
112
+ "assigneeType": "PROJECT_LEAD",
113
+ "versions": [],
114
+ "name": "Example",
115
+ "roles": {
116
+ "Developers": "https://your-domain.atlassian.net/rest/api/3/project/EX/role/10000"
117
+ },
118
+ "avatarUrls": {
119
+ "48x48": "https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000",
120
+ "24x24": "https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000",
121
+ "16x16": "https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000",
122
+ "32x32": "https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000"
123
+ },
124
+ "projectCategory": {
125
+ "self": "https://your-domain.atlassian.net/rest/api/3/projectCategory/10000",
126
+ "id": "10000",
127
+ "name": "FIRST",
128
+ "description": "First Project Category"
129
+ },
130
+ "simplified": false,
131
+ "style": "classic",
132
+ "properties": {
133
+ "propertyKey": "propertyValue"
134
+ },
135
+ "insight": {
136
+ "totalIssueCount": 100,
137
+ "lastIssueUpdateTime": "2021-12-31T03:47:11.150+0000"
138
+ }
139
+ }
@@ -18,7 +18,12 @@
18
18
  "putRestapi2projectprojectIdOrKey",
19
19
  "deleteRestapi2projectprojectIdOrKey",
20
20
  "getRestapi2projectprojectIdOrKeystatuses",
21
- "putRestapi2projectprojectIdOrKeytypenewProjectTypeKey"
21
+ "putRestapi2projectprojectIdOrKeytypenewProjectTypeKey",
22
+ "getRecent",
23
+ "archiveProject",
24
+ "deleteProjectAsynchronously",
25
+ "restore",
26
+ "getHierarchy"
22
27
  ],
23
28
  "external_name": "ph_request_type"
24
29
  }
@@ -62,6 +62,27 @@
62
62
  "mockFile": "mockdatafiles/getRestapi2projecttypeprojectTypeKeyaccessible-default.json"
63
63
  }
64
64
  ]
65
+ },
66
+ {
67
+ "name": "getAllAccessibleProjectTypes",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/project/type/accessible?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": "mockdatafiles/getAllAccessibleProjectTypes-default.json"
84
+ }
85
+ ]
65
86
  }
66
87
  ]
67
88
  }
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "key": "business",
4
+ "formattedKey": "Business",
5
+ "descriptionI18nKey": "jira.project.type.business.description",
6
+ "icon": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOC4xLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZmlsbD0iIzY2NjY2NiIgZD0iTTE2LDBDNy4yLDAsMCw3LjIsMCwxNmMwLDguOCw3LjIsMTYsMTYsMTZjOC44LDAsMTYtNy4yLDE2LTE2QzMyLDcuMiwyNC44LDAsMTYsMHogTTI1LjcsMjMNCgkJYzAsMS44LTEuNCwzLjItMy4yLDMuMkg5LjJDNy41LDI2LjIsNiwyNC44LDYsMjNWOS44QzYsOCw3LjUsNi42LDkuMiw2LjZoMTMuMmMwLjIsMCwwLjQsMCwwLjcsMC4xbC0yLjgsMi44SDkuMg0KCQlDOSw5LjQsOC44LDkuNiw4LjgsOS44VjIzYzAsMC4yLDAuMiwwLjQsMC40LDAuNGgxMy4yYzAuMiwwLDAuNC0wLjIsMC40LTAuNHYtNS4zbDIuOC0yLjhWMjN6IE0xNS45LDIxLjNMMTEsMTYuNGwyLTJsMi45LDIuOQ0KCQlMMjYuNCw2LjhjMC42LDAuNywxLjIsMS41LDEuNywyLjNMMTUuOSwyMS4zeiIvPg0KPC9nPg0KPC9zdmc+",
7
+ "color": "#FFFFFF"
8
+ },
9
+ {
10
+ "key": "software",
11
+ "formattedKey": "Software",
12
+ "descriptionI18nKey": "jira.project.type.software.description",
13
+ "icon": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOC4xLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAzMiAzMiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZmlsbD0iIzY2NjY2NiIgZD0iTTE2LDBDNy4yLDAsMCw3LjIsMCwxNmMwLDguOCw3LjIsMTYsMTYsMTZjOC44LDAsMTYtNy4yLDE2LTE2QzMyLDcuMiwyNC44LDAsMTYsMHogTTI1LjcsMjMNCgkJYzAsMS44LTEuNCwzLjItMy4yLDMuMkg5LjJDNy41LDI2LjIsNiwyNC44LDYsMjNWOS44QzYsOCw3LjUsNi42LDkuMiw2LjZoMTMuMmMwLjIsMCwwLjQsMCwwLjcsMC4xbC0yLjgsMi44SDkuMg0KCQlDOSw5LjQsOC44LDkuNiw4LjgsOS44VjIzYzAsMC4yLDAuMiwwLjQsMC40LDAuNGgxMy4yYzAuMiwwLDAuNC0wLjIsMC40LTAuNHYtNS4zbDIuOC0yLjhWMjN6IE0xNS45LDIxLjNMMTEsMTYuNGwyLTJsMi45LDIuOQ0KCQlMMjYuNCw2LjhjMC42LDAuNywxLjIsMS41LDEuNywyLjNMMTUuOSwyMS4zeiIvPg0KPC9nPg0KPC9zdmc+",
14
+ "color": "#AAAAAA"
15
+ }
16
+ ]
@@ -12,7 +12,8 @@
12
12
  "enum": [
13
13
  "getRestapi2projecttype",
14
14
  "getRestapi2projecttypeprojectTypeKey",
15
- "getRestapi2projecttypeprojectTypeKeyaccessible"
15
+ "getRestapi2projecttypeprojectTypeKeyaccessible",
16
+ "getAllAccessibleProjectTypes"
16
17
  ],
17
18
  "external_name": "ph_request_type"
18
19
  }
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getScreenSchemes",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/screenscheme?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/getScreenSchemes-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createScreenScheme",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/screenscheme?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": "mockdatafiles/createScreenScheme-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "updateScreenScheme",
46
+ "protocol": "REST",
47
+ "method": "PUT",
48
+ "entitypath": "{base_path}/{version}/screenscheme/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "deleteScreenScheme",
66
+ "protocol": "REST",
67
+ "method": "DELETE",
68
+ "entitypath": "{base_path}/{version}/screenscheme/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "self": "https://your-domain.atlassian.net/rest/api/3/screenscheme?maxResults=25&startAt=0",
3
+ "maxResults": 100,
4
+ "startAt": 0,
5
+ "total": 2,
6
+ "isLast": true,
7
+ "values": [
8
+ {
9
+ "id": 10010,
10
+ "name": "Employee screen scheme",
11
+ "description": "Manage employee data",
12
+ "screens": {
13
+ "default": 10017,
14
+ "edit": 10019,
15
+ "create": 10019,
16
+ "view": 10020
17
+ }
18
+ },
19
+ {
20
+ "id": 10032,
21
+ "name": "Office screen scheme",
22
+ "description": "Manage office data",
23
+ "screens": {
24
+ "default": 10020
25
+ }
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "getScreenSchemes",
14
+ "createScreenScheme",
15
+ "updateScreenScheme",
16
+ "deleteScreenScheme"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -251,6 +251,87 @@
251
251
  "mockFile": ""
252
252
  }
253
253
  ]
254
+ },
255
+ {
256
+ "name": "getScreensForField",
257
+ "protocol": "REST",
258
+ "method": "GET",
259
+ "entitypath": "{base_path}/{version}/field/{pathv1}/screens?{query}",
260
+ "requestSchema": "schema.json",
261
+ "responseSchema": "schema.json",
262
+ "timeout": 0,
263
+ "sendEmpty": false,
264
+ "sendGetBody": false,
265
+ "requestDatatype": "JSON",
266
+ "responseDatatype": "JSON",
267
+ "headers": {},
268
+ "responseObjects": [
269
+ {
270
+ "type": "default",
271
+ "key": "",
272
+ "mockFile": "mockdatafiles/getScreensForField-default.json"
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "name": "createScreen",
278
+ "protocol": "REST",
279
+ "method": "POST",
280
+ "entitypath": "{base_path}/{version}/screens?{query}",
281
+ "requestSchema": "schema.json",
282
+ "responseSchema": "schema.json",
283
+ "timeout": 0,
284
+ "sendEmpty": false,
285
+ "requestDatatype": "JSON",
286
+ "responseDatatype": "JSON",
287
+ "headers": {},
288
+ "responseObjects": [
289
+ {
290
+ "type": "default",
291
+ "key": "",
292
+ "mockFile": "mockdatafiles/createScreen-default.json"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "name": "updateScreen",
298
+ "protocol": "REST",
299
+ "method": "PUT",
300
+ "entitypath": "{base_path}/{version}/screens/{pathv1}?{query}",
301
+ "requestSchema": "schema.json",
302
+ "responseSchema": "schema.json",
303
+ "timeout": 0,
304
+ "sendEmpty": false,
305
+ "requestDatatype": "JSON",
306
+ "responseDatatype": "JSON",
307
+ "headers": {},
308
+ "responseObjects": [
309
+ {
310
+ "type": "default",
311
+ "key": "",
312
+ "mockFile": "mockdatafiles/updateScreen-default.json"
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "name": "deleteScreen",
318
+ "protocol": "REST",
319
+ "method": "DELETE",
320
+ "entitypath": "{base_path}/{version}/screens/{pathv1}?{query}",
321
+ "requestSchema": "schema.json",
322
+ "responseSchema": "schema.json",
323
+ "timeout": 0,
324
+ "sendEmpty": false,
325
+ "requestDatatype": "JSON",
326
+ "responseDatatype": "JSON",
327
+ "headers": {},
328
+ "responseObjects": [
329
+ {
330
+ "type": "default",
331
+ "key": "",
332
+ "mockFile": ""
333
+ }
334
+ ]
254
335
  }
255
336
  ]
256
337
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": 10005,
3
+ "name": "Resolve Security Issue Screen",
4
+ "description": "Enables changes to resolution and linked issues."
5
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "maxResults": 1,
3
+ "startAt": 0,
4
+ "total": 5,
5
+ "isLast": false,
6
+ "values": [
7
+ {
8
+ "id": 10001,
9
+ "name": "Default Screen",
10
+ "description": "Provides for the update of all system fields.",
11
+ "tab": {
12
+ "id": 10000,
13
+ "name": "Fields Tab"
14
+ }
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "id": 10005,
3
+ "name": "Resolve Security Issue Screen",
4
+ "description": "Enables changes to resolution and linked issues."
5
+ }
@@ -21,7 +21,11 @@
21
21
  "postRestapi2screensscreenIdtabstabIdfields",
22
22
  "deleteRestapi2screensscreenIdtabstabIdfieldsid",
23
23
  "postRestapi2screensscreenIdtabstabIdfieldsidmove",
24
- "postRestapi2screensscreenIdtabstabIdmovepos"
24
+ "postRestapi2screensscreenIdtabstabIdmovepos",
25
+ "getScreensForField",
26
+ "createScreen",
27
+ "updateScreen",
28
+ "deleteScreen"
25
29
  ],
26
30
  "external_name": "ph_request_type"
27
31
  }