UNPKG

oa-jira

Version:

Octet Agile's JIRA connectivity project.

457 lines (430 loc) 14.1 kB
const version10003 = { id: '10003', name: 'v0.1.0', archived: true, released: true, releaseDate: new Date('2022-07-13').toISOString(), startDate: new Date('2022-04-04').toISOString(), projectId: 10000 }; const version10003InIssue = { id: version10003.id, name: version10003.name, archived: version10003.archived, released: version10003.released, releaseDate: version10003.releaseDate }; const version10004 = { id: '10004', name: 'v1', archived: false, released: false }; const project10000 = { id: '10000', key: 'PRJ', name: 'Jira PROJECT', type: 'software' }; const project10666 = { id: '10666', key: 'CHAOS', name: "Tyler Durden's Chaos Project" }; const resolution10000 = { id: '10000', description: 'Ce ticket a été traité.', name: 'Terminé' }; const resolution10001 = { id: '10001', description: "This issue won't be actioned.", name: "Won't Do" }; const resolution10002 = { id: '10002', description: 'The issue is a duplicate of an existing ticket.', name: 'Duplicate' }; const resolution10003 = { id: '10003', description: 'This issue was not approved.', name: 'Declined' }; const category2 = { id: 2, key: 'new', colorName: 'blue-gray', name: 'A faire' }; const category3 = { id: 3, key: 'done', colorName: 'green', name: 'Done' }; const category4 = { id: 4, key: 'indeterminate', colorName: 'yellow', name: 'En cours' }; const status10000 = { description: 'Something that are identified to be done.', iconUrl: 'to-do.png', name: 'To Do', id: '10000', category: category2 }; const status10001 = { description: 'An issue that someone is actively working on.', iconUrl: 'in-progress.svg', name: 'In Progress', id: '10001', category: category4 }; const status10002 = { description: 'The final status of a nominal done issue.', iconUrl: 'finish.png', name: 'Done', id: '10002', category: category3 }; const status10012 = { description: 'An issue that have to be reviewed by a peer.', iconUrl: 'review.jpeg', name: 'To Review', id: '10012', category: category4 }; const sprint10 = { id: 10, state: 'closed', name: 'Sprint #10', startDate: '2022-05-06T13:16:27.000Z', endDate: '2022-05-20T13:16:22.000Z', completeDate: '2022-05-07T08:11:49.236Z', createdDate: '2022-05-06T05:19:33.207Z', originBoardId: 1 }; const sprint12 = { id: 12, state: 'closed', name: 'Sprint #12', startDate: '2022-05-07T19:48:11.738Z', endDate: '2022-05-21T19:48:08.000Z', completeDate: '2022-05-14T06:34:53.705Z', createdDate: '2022-05-07T19:43:55.050Z', originBoardId: 1, goal: '' }; const sprint13 = { id: 13, state: 'closed', name: 'Sprint #13', startDate: '2022-05-14T06:36:27.216Z', endDate: '2022-05-19T22:00:00.000Z', completeDate: '2022-06-02T16:18:54.929Z', createdDate: '2022-05-14T06:32:08.290Z', originBoardId: 1, goal: 'Make something beautiful !' }; const sprint12InIssue = { id: 12, state: 'closed', name: 'Sprint #12', startDate: '2022-05-07T19:48:11.738Z', endDate: '2022-05-21T19:48:08.000Z', completeDate: '2022-05-14T06:34:53.705Z', originBoardId: 1 }; const sprint13InIssue = { id: 13, state: 'closed', name: 'Sprint #13', startDate: '2022-05-14T06:36:27.216Z', endDate: '2022-05-19T22:00:00.000Z', completeDate: '2022-06-02T16:18:54.929Z', originBoardId: 1, goal: 'Make something beautiful !' }; const sprint14InIssue = { id: 14, state: 'closed', name: 'Sprint #14', startDate: '2022-06-02T17:24:33.426Z', endDate: '2022-06-08T08:48:28.000Z', completeDate: '2022-06-09T16:27:28.119Z', originBoardId: 1, goal: "Break the sky's limit" }; const sprint14 = { ...sprint14InIssue, createdDate: '2022-06-02T16:18:11.276Z' }; const sprint15 = { id: 15, state: 'closed', name: 'Sprint #15', startDate: '2022-06-09T16:27:37.267Z', endDate: '2022-06-15T07:51:32.000Z', completeDate: '2022-06-18T14:54:35.074Z', createdDate: '2022-06-09T16:16:39.831Z', originBoardId: 1, goal: '' }; const sprint16 = { id: 16, state: 'closed', name: 'Sprint #16' }; const issuetype10001 = { id: '10001', description: 'A feature identified as a story for a user.', iconUrl: 'story.png', name: 'Story', subtask: false, hierarchyLevel: 0 }; const issuetype10002 = { id: '10002', description: 'A task.', iconUrl: 'task.png', name: 'Task', subtask: false, hierarchyLevel: 0 }; const issuetype10005 = { id: '10005', description: 'A small unit of work.', iconUrl: 'subTask.jpeg', name: 'Sub-Task', subtask: true, hierarchyLevel: -1 }; const KEY001Update11 = new Date('2022-06-11T12:11:11.011+0200').toISOString(); const KEY001Update10 = new Date('2022-06-10T12:10:10.010+0200').toISOString(); const KEY001Update09 = new Date('2022-06-09T12:09:09.009+0200').toISOString(); const KEY001Update08 = new Date('2022-06-08T12:08:08.008+0200').toISOString(); const KEY001Update07 = new Date('2022-06-07T12:07:07.007+0200').toISOString(); const KEY001Update06 = new Date('2022-06-06T12:06:06.006+0200').toISOString(); const KEY001Update05 = new Date('2022-06-05T12:05:05.005+0200').toISOString(); const KEY001Update04 = new Date('2022-06-04T12:04:04.004+0200').toISOString(); const KEY001Update03 = new Date('2022-06-03T12:03:03.003+0200').toISOString(); const KEY001Update02 = new Date('2022-06-02T12:02:02.002+0200').toISOString(); const KEY001Created = new Date('2022-06-01T12:01:01.001+0200').toISOString(); const issueKEY001 = { key: 'KEY-001', created: new Date(KEY001Created), resolutiondate: KEY001Update09, snapshots: { first: KEY001Created, last: KEY001Update11, snapshots: { '2022-06-11T10:11:11.011Z': { time: KEY001Update11, previous: KEY001Update10, data: { complexity: 8, summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', sprint: sprint14InIssue, status: status10002, project: project10000, resolution: resolution10000, type: issuetype10002, versions: [version10003InIssue, version10004] }, changes: { resolution: { target: resolution10000 }, versions: { source: [version10004], target: [version10003InIssue, version10004] } } }, '2022-06-10T10:10:10.010Z': { time: KEY001Update10, previous: KEY001Update09, next: KEY001Update11, data: { complexity: 8, summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', sprint: sprint14InIssue, status: status10002, project: project10000, type: issuetype10002, versions: [version10004] }, changes: { resolution: { source: resolution10001 }, versions: { source: [version10004, version10003InIssue], target: [version10004] } } }, '2022-06-09T10:09:09.009Z': { time: KEY001Update09, previous: KEY001Update08, next: KEY001Update10, data: { complexity: 8, summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', sprint: sprint14InIssue, status: status10002, project: project10000, resolution: resolution10001, type: issuetype10002, versions: [version10004, version10003InIssue] }, changes: { status: { source: status10012, target: status10002 }, resolution: { target: resolution10001 }, versions: { source: [version10004], target: [version10004, version10003InIssue] } } }, '2022-06-08T10:08:08.008Z': { time: KEY001Update08, previous: KEY001Update07, next: KEY001Update09, data: { complexity: 8, summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', sprint: sprint14InIssue, status: status10012, project: project10000, type: issuetype10002, versions: [version10004] }, changes: { status: { source: status10001, target: status10012 }, type: { source: issuetype10001, target: issuetype10002 } } }, '2022-06-07T10:07:07.007Z': { time: KEY001Update07, previous: KEY001Update06, next: KEY001Update08, data: { complexity: 8, summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', sprint: sprint14InIssue, status: status10001, project: project10000, type: issuetype10001, versions: [version10004] }, changes: { complexity: { source: 3, target: 8 }, status: { source: status10000, target: status10001 } } }, '2022-06-06T10:06:06.006Z': { time: KEY001Update06, previous: KEY001Update05, next: KEY001Update07, data: { complexity: 3, summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', sprint: sprint14InIssue, status: status10000, project: project10000, type: issuetype10001, versions: [version10004] }, changes: { sprint: { source: sprint13InIssue, target: sprint14InIssue } } }, '2022-06-05T10:05:05.005Z': { time: KEY001Update05, previous: KEY001Update04, next: KEY001Update06, data: { complexity: 3, summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', sprint: sprint13InIssue, status: status10000, project: project10000, type: issuetype10001, versions: [version10004] }, changes: { sprint: { source: sprint12InIssue, target: sprint13InIssue } } }, '2022-06-04T10:04:04.004Z': { time: KEY001Update04, previous: KEY001Update03, next: KEY001Update05, data: { complexity: 3, summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', sprint: sprint12InIssue, status: status10000, project: project10000, type: issuetype10001, versions: [version10004] }, changes: { sprint: { target: sprint12InIssue }, complexity: { target: 3 } } }, '2022-06-03T10:03:03.003Z': { time: KEY001Update03, previous: KEY001Update02, next: KEY001Update04, data: { summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].', status: status10000, project: project10000, type: issuetype10001, versions: [version10004] }, changes: { summary: { source: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING].', target: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING] in order to [WHY].' }, sprint: { source: sprint10 } } }, '2022-06-02T10:02:02.002Z': { time: KEY001Update02, previous: KEY001Created, next: KEY001Update03, data: { summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING].', sprint: sprint10, status: status10000, project: project10000, type: issuetype10001, versions: [version10004] }, changes: { sprint: { target: sprint10 } } }, '2022-06-01T10:01:01.001Z': { time: KEY001Created, next: KEY001Update02, data: { summary: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING].', status: status10000, project: project10000, type: issuetype10001, versions: [version10004] }, changes: { updated: { target: new Date(KEY001Created) }, summary: { target: 'As a [WHO], I should be [BE ABLE TO DO SOMETHING].' }, status: { target: status10000 }, project: { target: project10000 }, type: { target: issuetype10001 }, versions: { target: [version10004] } } } } } }; const issueKEY000 = { key: 'KEY-000', created: new Date(KEY001Created), snapshots: { first: KEY001Created, last: KEY001Created, snapshots: { '2022-06-01T10:01:01.001Z': { time: KEY001Created, data: { summary: 'minimal', status: status10002, project: project10000, type: issuetype10002 }, changes: { updated: { target: new Date(KEY001Created) }, summary: { target: 'minimal' }, status: { target: status10002 }, project: { target: project10000 }, type: { target: issuetype10002 } } } } } }; module.exports = { versions: { 10003: version10003, 10004: version10004 }, projects: { 10000: project10000, 10666: project10666 }, resolutions: { 10000: resolution10000, 10001: resolution10001, 10002: resolution10002, 10003: resolution10003 }, categories: { 2: category2, 3: category3, 4: category4 }, statuses: { 10000: status10000, 10001: status10001, 10002: status10002, 10012: status10012 }, sprints: { 10: sprint10, 12: sprint12, 13: sprint13, 14: sprint14, 15: sprint15, 16: sprint16 }, types: { 10001: issuetype10001, 10005: issuetype10005 }, issues: { 'KEY-001': issueKEY001, 'KEY-000': issueKEY000 } };