-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjira.sgnl.yaml
532 lines (525 loc) · 18.8 KB
/
jira.sgnl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
# Jira Configuration YAML for DS2.0
displayName: "Jira"
icon: PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNTYuMjA4IDMwLjgzODVMMzQuNTAwMyA5LjEzMDgyTDMyLjQwOTQgN0wxNi4wNTU0IDIzLjM0MDdMOC41ODQyMiAzMC44Mzg1QzguMjEwMTIgMzEuMjEzMSA4IDMxLjcyMDggOCAzMi4yNTAyQzggMzIuNzc5NiA4LjIxMDEyIDMzLjI4NzMgOC41ODQyMiAzMy42NjE5TDIzLjUxMzMgNDguNTkwOUwzMi40MDk0IDU3LjQ3MzhMNDguNzUwMSA0MS4xMzMxTDQ5LjAwMzIgNDAuODhMNTYuMjA4IDMzLjYzNTJDNTYuNTc0IDMzLjI2MTggNTYuNzc5IDMyLjc1OTggNTYuNzc5IDMyLjIzNjlDNTYuNzc5IDMxLjcxNCA1Ni41NzQgMzEuMjEyIDU2LjIwOCAzMC44Mzg1Wk0zMi40MDk0IDM5LjY4MTRMMjQuOTUxNiAzMi4yMjM2TDMyLjQwOTQgMjQuNzY1N0wzOS44NjczIDMyLjIyMzZMMzIuNDA5NCAzOS42ODE0WiIgZmlsbD0iIzAwODJGRiIvPgo8cGF0aCBkPSJNMzIuNDA5NSAyNC43NjU4QzMwLjA2MzkgMjIuNDE5OSAyOC43NDE3IDE5LjI0MTIgMjguNzMxNyAxNS45MjM5QzI4LjcyMTggMTIuNjA2NSAzMC4wMjQ3IDkuNDE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1jb2xvcj0iIzAwNTBEMyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDgyRkYiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K
description: "Jira as a System of Record"
hostname: "{{Input Required: Jira-Domain}}.atlassian.net"
defaultSyncFrequency: HOURLY
defaultSyncMinInterval: 1
defaultApiCallFrequency: SECONDLY
defaultApiCallMinInterval: 1
type: "Jira-1.0.0"
# Example Configs:
# empty config: {} | b64: "e30="
# config with issues jql filter: {"issuesJqlFilter":"project=SGNL"} | b64: "eyJpc3N1ZXNKcWxGaWx0ZXIiOiJwcm9qZWN0PVNHTkwifQ=="
# config with issues jql filter with space {"issuesJqlFilter":"project='Customer Support'"} | b64: "eyJpc3N1ZXNKcWxGaWx0ZXIiOiJwcm9qZWN0PSdDdXN0b21lciBTdXBwb3J0JyJ9"
# config with objects ql query {"objectsQlQuery":"objectType = Customer"} | b64: "eyJvYmplY3RzUWxRdWVyeSI6Im9iamVjdFR5cGUgPSBDdXN0b21lciJ9"
adapterConfig: "eyJvYmplY3RzUWxRdWVyeSI6Im9iamVjdFR5cGUgPSBJTlBVVF9SRVFVSVJFRCJ9" # {"objectsQlQuery":"objectType = INPUT_REQUIRED"}
# All auth mechanisms specified below must be supported by the specified Adapter.
auth:
- basic:
username: "{{Input Required: Username}}"
password: "{{Input Required: API Token}}"
entities:
User:
# https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get
# applicationRoles and groups are not included.
displayName: User
externalId: User
description: User entity in Jira
pageSize: 100
pagesOrderedById: false
attributes:
- name: accountId
externalId: accountId
type: String
indexed: true
uniqueId: true
- name: self
externalId: self
type: String
- name: accountType
externalId: accountType
type: String
- name: displayName
externalId: displayName
type: String
- name: active
externalId: active
type: Bool
- name: locale
externalId: locale
type: String
- name: emailAddress
externalId: emailAddress
type: String
indexed: true
Issue:
# https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-post
displayName: Issue
externalId: Issue
description: Issue entity in Jira
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: self
externalId: self
type: String
- name: key
externalId: key
type: String
indexed: true
- name: fields__statuscategorychangedate
externalId: fields__statuscategorychangedate
type: DateTime
- name: fields__issuetype__self
externalId: fields__issuetype__self
type: String
- name: fields__issuetype__id
externalId: fields__issuetype__id
type: String
- name: fields__issuetype__description
externalId: fields__issuetype__description
type: String
- name: fields__issuetype__name
externalId: fields__issuetype__name
type: String
- name: fields__issuetype__subtask
externalId: fields__issuetype__subtask
type: Bool
- name: fields__issuetype__avatarId
externalId: fields__issuetype__avatarId
type: Int64
- name: fields__issuetype__entityId
externalId: fields__issuetype__entityId
type: String
- name: fields__issuetype__hierarchyLevel
externalId: fields__issuetype__hierarchyLevel
type: Int64
- name: fields__timespent
externalId: fields__timespent
type: Int64
- name: fields__project__self
externalId: fields__project__self
type: String
- name: fields__project__id
externalId: fields__project__id
type: String
- name: fields__project__key
externalId: fields__project__key
type: String
- name: fields__project__name
externalId: fields__project__name
type: String
- name: fields__project__projectTypeKey
externalId: fields__project__projectTypeKey
type: String
- name: fields__project__simplified
externalId: fields__project__simplified
type: Bool
- name: fields_aggregatetimespent
externalId: fields__aggregatetimespent
type: Int64
- name: fields__resolution__self
externalId: fields__resolution__self
type: String
- name: fields__resolution__id
externalId: fields__resolution__id
type: String
- name: fields__resolution__description
externalId: fields__resolution__description
type: String
- name: fields__resolution__name
externalId: fields__resolution__name
type: String
- name: fields__resolutiondate
externalId: fields__resolutiondate
type: DateTime
- name: fields__workratio
externalId: fields__workratio
type: Int64
- name: fields__lastViewed
externalId: fields__lastViewed
type: DateTime
- name: fields__watches__self
externalId: fields__watches__self
type: String
- name: fields__watches__watchCount
externalId: fields__watches__watchCount
type: Int64
- name: fields__watches__isWatching
externalId: fields__watches__isWatching
type: Bool
- name: fields__created
externalId: fields__created
type: DateTime
- name: fields__priority__self
externalId: fields__priority__self
type: String
- name: fields__priority__name
externalId: fields__priority__name
type: String
- name: fields__priority__id
externalId: fields__priority__id
type: String
- name: fields__labels
externalId: fields__labels
type: String
list: true
- name: fields__timeestimate
externalId: fields__timeestimate
type: Int64
- name: fields__aggregatetimeoriginalestimate
externalId: fields__aggregatetimeoriginalestimate
type: Int64
- name: fields__versions
externalId: fields__versions
type: String
list: true
- name: fields__issueLinks
externalId: fields__issueLinks
type: String
list: true
- name: fields__assignee__self
externalId: fields__assignee__self
type: String
- name: fields__assignee__accountId
externalId: fields__assignee__accountId
type: String
indexed: true
- name: fields__assignee__emailAddress
externalId: fields__assignee__emailAddress
type: String
- name: fields__assignee__displayName
externalId: fields__assignee__displayName
type: String
- name: fields__assignee__active
externalId: fields__assignee__active
type: Bool
- name: fields__assignee__timeZone
externalId: fields__assignee__timeZone
type: String
- name: fields__assignee__accountType
externalId: fields__assignee__accountType
type: String
- name: fields__updated
externalId: fields__updated
type: DateTime
- name: fields__status__self
externalId: fields__status__self
type: String
- name: fields__status__description
externalId: fields__status__description
type: String
- name: fields__status__name
externalId: fields__status__name
type: String
- name: fields__status__id
externalId: fields__status__id
type: String
- name: fields__status__statusCategory__self
externalId: fields__status__statusCategory__self
type: String
- name: fields__status__statusCategory__id
externalId: fields__status__statusCategory__id
type: Int64
- name: fields__status__statusCategory__key
externalId: fields__status__statusCategory__key
type: String
- name: fields__status__statusCategory__colorName
externalId: fields__status__statusCategory__colorName
type: String
- name: fields__status__statusCategory__name
externalId: fields__status__statusCategory__name
type: String
- name: fields__timeoriginalestimate
externalId: fields__timeoriginalestimate
type: String
- name: fields__description__version
externalId: fields__description__version
type: Int64
- name: fields__description__type
externalId: fields__description__type
type: String
- name: fields__security
externalId: fields__security
type: String
- name: fields__aggregatetimeestimate
externalId: fields__aggregatetimeestimate
type: String
- name: fields__summary
externalId: fields__summary
type: String
- name: fields__creator__self
externalId: fields__creator__self
type: String
- name: fields__creator__accountId
externalId: fields__creator__accountId
type: String
indexed: true
- name: fields__creator__emailAddress
externalId: fields__creator__emailAddress
type: String
- name: fields__creator__displayName
externalId: fields__creator__displayName
type: String
- name: fields__creator__active
externalId: fields__creator__active
type: Bool
- name: fields__creator__timeZone
externalId: fields__creator__timeZone
type: String
- name: fields__creator__accountType
externalId: fields__creator__accountType
type: String
- name: fields__reporter__self
externalId: fields__reporter__self
type: String
- name: fields__reporter__accountId
externalId: fields__reporter__accountId
type: String
indexed: true
- name: fields__reporter__emailAddress
externalId: fields__reporter__emailAddress
type: String
- name: fields__reporter__displayName
externalId: fields__reporter__displayName
type: String
- name: fields__reporter__active
externalId: fields__reporter__active
type: Bool
- name: fields__reporter__timeZone
externalId: fields__reporter__timeZone
type: String
- name: fields__reporter__accountType
externalId: fields__reporter__accountType
type: String
- name: fields__aggregateprogress__progress
externalId: fields__aggregateprogress__progress
type: Int64
- name: fields__aggregateprogress__total
externalId: fields__aggregateprogress__total
type: Int64
- name: fields__environment
externalId: fields__environment
type: String
- name: fields__duedate
externalId: fields__duedate
type: DateTime
- name: fields__progress__progress
externalId: fields__progress__progress
type: Int64
- name: fields__progress__total
externalId: fields__progress__total
type: Int64
- name: fields__votes__self
externalId: fields__votes__self
type: String
- name: fields__votes__votes
externalId: fields__votes__votes
type: Int64
- name: fields__votes__hasVoted
externalId: fields__votes__hasVoted
type: Bool
FixVersions:
parent: Issue
displayName: FixVersions
externalId: $.fields.fixVersions
description: Fix Versions associated with a specific issue
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: name
externalId: name
type: String
indexed: true
- name: archived
externalId: archived
type: Bool
- name: released
externalId: released
type: Bool
Group:
# https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-group-bulk-get
displayName: Group
externalId: Group
description: Group entity in Jira
pageSize: 100
pagesOrderedById: false
attributes:
- name: groupId
externalId: groupId
type: String
indexed: true
uniqueId: true
- name: name
externalId: name
type: String
GroupMember:
displayName: GroupMember
externalId: GroupMember
description: Group Member entity in Jira
pageSize: 100
pagesOrderedById: false
attributes:
- name: id
externalId: id
type: String
indexed: true
uniqueId: true
- name: groupId
externalId: groupId
type: String
indexed: true
- name: accountId
externalId: accountId
type: String
indexed: true
Workspace:
# https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-assets/#api-rest-servicedeskapi-assets-workspace-get.
displayName: Workspace
externalId: Workspace
description: Workspace entity in Jira
pageSize: 100
pagesOrderedById: false
attributes:
- name: workspaceId
externalId: workspaceId
type: String
indexed: true
uniqueId: true
# WARNING: In order to sync Objects, you must specify the objectsQlQuery in the adapterConfig.
# otherwise Jira will return 400.
Object:
# https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-aql-post.
displayName: Object
externalId: Object
description: Object entity in Jira
pageSize: 100
pagesOrderedById: false
attributes:
- name: globalId
externalId: globalId
type: String
indexed: true
uniqueId: true
- name: workspaceId
externalId: workspaceId
type: String
indexed: true
- name: id
externalId: id
type: String
- name: label
externalId: label
type: String
- name: objectKey
externalId: objectKey
type: String
- name: objectType__workspaceId
externalId: objectType__workspaceId
type: String
- name: objectType__globalId
externalId: objectType__globalId
type: String
- name: objectType__id
externalId: objectType__id
type: String
- name: objectType__name
externalId: objectType__name
type: String
- name: objectType__description
externalId: objectType__description
type: String
- name: objectType__position
externalId: objectType__position
type: Int64
- name: objectType__created
externalId: objectType__created
type: DateTime
- name: objectType__updated
externalId: objectType__updated
type: DateTime
- name: objectType__objectCount
externalId: objectType__objectCount
type: Int64
- name: objectType__objectSchemaId
externalId: objectType__objectSchemaId
type: String
- name: objectType__inherited
externalId: objectType__inherited
type: Bool
- name: objectType__abstractObjectType
externalId: objectType__abstractObjectType
type: Bool
- name: objectType__parentObjectTypeInherited
externalId: objectType__parentObjectTypeInherited
type: Bool
- name: created
externalId: created
type: DateTime
- name: updated
externalId: updated
type: DateTime
- name: timestamp
externalId: timestamp
type: Int64
- name: name
externalId: name
type: String
relationships:
# (User) -[UserMember]-> (GroupMember)
UserMember:
name: UserMember
displayName: User Member
fromAttribute: User.accountId
toAttribute: GroupMember.accountId
# (GroupMember) -[GroupMember]-> (Group)
GroupMember:
name: GroupMember
displayName: Group Member
fromAttribute: GroupMember.groupId
toAttribute: Group.groupId
# Path relationship based on the previous two relationships.
# (User) -[Group]-> (Group)
UserMemberGroup:
name: Group
displayName: User Member Group
path:
- relationship: UserMember
direction: Forward
- relationship: GroupMember
direction: Forward
# (Object) -[ObjectMember]-> (Workspace)
ObjectMember:
name: ObjectMember
displayName: Object Member
fromAttribute: Object.workspaceId
toAttribute: Workspace.workspaceId
# (Issue) -[AssignedTo]-> (User)
IssueAssignee:
name: AssignedTo
displayName: Issue Assignee
fromAttribute: Issue.fields__assignee__accountId
toAttribute: User.accountId
# (Issue) -[CreatedBy]-> (User)
IssueCreator:
name: CreatedBy
displayName: Issue Creator
fromAttribute: Issue.fields__creator__accountId
toAttribute: User.accountId
# (Issue) -[ReportedBy]-> (User)
IssueReporter:
name: ReportedBy
displayName: Issue Reporter
fromAttribute: Issue.fields__reporter__accountId
toAttribute: User.accountId