zk-jira-ruby 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.travis.yml +9 -0
- data/Gemfile +14 -0
- data/Guardfile +14 -0
- data/LICENSE +19 -0
- data/README.md +427 -0
- data/Rakefile +31 -0
- data/example.rb +232 -0
- data/http-basic-example.rb +113 -0
- data/jira-ruby.gemspec +35 -0
- data/lib/jira/base.rb +525 -0
- data/lib/jira/base_factory.rb +46 -0
- data/lib/jira/client.rb +315 -0
- data/lib/jira/has_many_proxy.rb +42 -0
- data/lib/jira/http_client.rb +112 -0
- data/lib/jira/http_error.rb +14 -0
- data/lib/jira/jwt_client.rb +67 -0
- data/lib/jira/oauth_client.rb +114 -0
- data/lib/jira/railtie.rb +10 -0
- data/lib/jira/request_client.rb +31 -0
- data/lib/jira/resource/agile.rb +79 -0
- data/lib/jira/resource/applinks.rb +39 -0
- data/lib/jira/resource/attachment.rb +50 -0
- data/lib/jira/resource/board.rb +91 -0
- data/lib/jira/resource/board_configuration.rb +9 -0
- data/lib/jira/resource/comment.rb +12 -0
- data/lib/jira/resource/component.rb +8 -0
- data/lib/jira/resource/createmeta.rb +44 -0
- data/lib/jira/resource/field.rb +83 -0
- data/lib/jira/resource/filter.rb +15 -0
- data/lib/jira/resource/issue.rb +141 -0
- data/lib/jira/resource/issuelink.rb +20 -0
- data/lib/jira/resource/issuelinktype.rb +14 -0
- data/lib/jira/resource/issuetype.rb +8 -0
- data/lib/jira/resource/priority.rb +8 -0
- data/lib/jira/resource/project.rb +41 -0
- data/lib/jira/resource/rapidview.rb +67 -0
- data/lib/jira/resource/remotelink.rb +26 -0
- data/lib/jira/resource/resolution.rb +8 -0
- data/lib/jira/resource/serverinfo.rb +18 -0
- data/lib/jira/resource/sprint.rb +105 -0
- data/lib/jira/resource/sprint_report.rb +8 -0
- data/lib/jira/resource/status.rb +8 -0
- data/lib/jira/resource/transition.rb +29 -0
- data/lib/jira/resource/user.rb +30 -0
- data/lib/jira/resource/version.rb +66 -0
- data/lib/jira/resource/watcher.rb +35 -0
- data/lib/jira/resource/webhook.rb +37 -0
- data/lib/jira/resource/worklog.rb +14 -0
- data/lib/jira/tasks.rb +0 -0
- data/lib/jira/version.rb +3 -0
- data/lib/jira-ruby.rb +49 -0
- data/lib/tasks/generate.rake +18 -0
- data/spec/integration/attachment_spec.rb +32 -0
- data/spec/integration/comment_spec.rb +52 -0
- data/spec/integration/component_spec.rb +39 -0
- data/spec/integration/field_spec.rb +32 -0
- data/spec/integration/issue_spec.rb +93 -0
- data/spec/integration/issuelinktype_spec.rb +26 -0
- data/spec/integration/issuetype_spec.rb +24 -0
- data/spec/integration/priority_spec.rb +24 -0
- data/spec/integration/project_spec.rb +49 -0
- data/spec/integration/rapidview_spec.rb +74 -0
- data/spec/integration/resolution_spec.rb +26 -0
- data/spec/integration/status_spec.rb +24 -0
- data/spec/integration/transition_spec.rb +49 -0
- data/spec/integration/user_spec.rb +41 -0
- data/spec/integration/version_spec.rb +39 -0
- data/spec/integration/watcher_spec.rb +62 -0
- data/spec/integration/webhook.rb +25 -0
- data/spec/integration/worklog_spec.rb +51 -0
- data/spec/jira/base_factory_spec.rb +45 -0
- data/spec/jira/base_spec.rb +598 -0
- data/spec/jira/client_spec.rb +291 -0
- data/spec/jira/has_many_proxy_spec.rb +46 -0
- data/spec/jira/http_client_spec.rb +328 -0
- data/spec/jira/http_error_spec.rb +24 -0
- data/spec/jira/jwt_uri_builder_spec.rb +59 -0
- data/spec/jira/oauth_client_spec.rb +162 -0
- data/spec/jira/request_client_spec.rb +41 -0
- data/spec/jira/resource/agile_spec.rb +135 -0
- data/spec/jira/resource/attachment_spec.rb +138 -0
- data/spec/jira/resource/board_spec.rb +224 -0
- data/spec/jira/resource/createmeta_spec.rb +258 -0
- data/spec/jira/resource/field_spec.rb +85 -0
- data/spec/jira/resource/filter_spec.rb +97 -0
- data/spec/jira/resource/issue_spec.rb +227 -0
- data/spec/jira/resource/issuelink_spec.rb +14 -0
- data/spec/jira/resource/project_factory_spec.rb +11 -0
- data/spec/jira/resource/project_spec.rb +123 -0
- data/spec/jira/resource/sprint_spec.rb +90 -0
- data/spec/jira/resource/user_factory_spec.rb +31 -0
- data/spec/jira/resource/worklog_spec.rb +22 -0
- data/spec/mock_responses/board/1.json +33 -0
- data/spec/mock_responses/board/1_issues.json +62 -0
- data/spec/mock_responses/component/10000.invalid.put.json +5 -0
- data/spec/mock_responses/component/10000.json +39 -0
- data/spec/mock_responses/component/10000.put.json +39 -0
- data/spec/mock_responses/component.post.json +28 -0
- data/spec/mock_responses/empty_issues.json +8 -0
- data/spec/mock_responses/field/1.json +15 -0
- data/spec/mock_responses/field.json +32 -0
- data/spec/mock_responses/issue/10002/attachments/10000.json +20 -0
- data/spec/mock_responses/issue/10002/comment/10000.json +29 -0
- data/spec/mock_responses/issue/10002/comment/10000.put.json +29 -0
- data/spec/mock_responses/issue/10002/comment.json +65 -0
- data/spec/mock_responses/issue/10002/comment.post.json +29 -0
- data/spec/mock_responses/issue/10002/transitions.json +49 -0
- data/spec/mock_responses/issue/10002/transitions.post.json +1 -0
- data/spec/mock_responses/issue/10002/watchers.json +13 -0
- data/spec/mock_responses/issue/10002/worklog/10000.json +31 -0
- data/spec/mock_responses/issue/10002/worklog/10000.put.json +30 -0
- data/spec/mock_responses/issue/10002/worklog.json +98 -0
- data/spec/mock_responses/issue/10002/worklog.post.json +30 -0
- data/spec/mock_responses/issue/10002.invalid.put.json +6 -0
- data/spec/mock_responses/issue/10002.json +126 -0
- data/spec/mock_responses/issue/10002.put.missing_field_update.json +6 -0
- data/spec/mock_responses/issue.json +1108 -0
- data/spec/mock_responses/issue.post.json +5 -0
- data/spec/mock_responses/issueLinkType/10000.json +7 -0
- data/spec/mock_responses/issueLinkType.json +25 -0
- data/spec/mock_responses/issuetype/5.json +8 -0
- data/spec/mock_responses/issuetype.json +42 -0
- data/spec/mock_responses/jira/rest/webhooks/1.0/webhook/2.json +11 -0
- data/spec/mock_responses/jira/rest/webhooks/1.0/webhook.json +11 -0
- data/spec/mock_responses/priority/1.json +8 -0
- data/spec/mock_responses/priority.json +42 -0
- data/spec/mock_responses/project/SAMPLEPROJECT.issues.json +1108 -0
- data/spec/mock_responses/project/SAMPLEPROJECT.json +84 -0
- data/spec/mock_responses/project.json +12 -0
- data/spec/mock_responses/rapidview/SAMPLEPROJECT.issues.full.json +276 -0
- data/spec/mock_responses/rapidview/SAMPLEPROJECT.issues.json +111 -0
- data/spec/mock_responses/rapidview/SAMPLEPROJECT.json +6 -0
- data/spec/mock_responses/rapidview.json +10 -0
- data/spec/mock_responses/resolution/1.json +7 -0
- data/spec/mock_responses/resolution.json +15 -0
- data/spec/mock_responses/sprint/1_issues.json +125 -0
- data/spec/mock_responses/status/1.json +7 -0
- data/spec/mock_responses/status.json +37 -0
- data/spec/mock_responses/user_username=admin.json +17 -0
- data/spec/mock_responses/version/10000.invalid.put.json +5 -0
- data/spec/mock_responses/version/10000.json +11 -0
- data/spec/mock_responses/version/10000.put.json +7 -0
- data/spec/mock_responses/version.post.json +7 -0
- data/spec/mock_responses/webhook/webhook.json +11 -0
- data/spec/mock_responses/webhook.json +11 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/support/clients_helper.rb +16 -0
- data/spec/support/matchers/have_attributes.rb +11 -0
- data/spec/support/matchers/have_many.rb +9 -0
- data/spec/support/matchers/have_one.rb +5 -0
- data/spec/support/shared_examples/integration.rb +177 -0
- metadata +491 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
{
|
2
|
+
"self": "http://localhost:2990/jira/rest/api/2/project/SAMPLEPROJECT",
|
3
|
+
"id": "10001",
|
4
|
+
"key": "SAMPLEPROJECT",
|
5
|
+
"lead": {
|
6
|
+
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
7
|
+
"name": "admin",
|
8
|
+
"avatarUrls": {
|
9
|
+
"16x16": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
10
|
+
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
11
|
+
},
|
12
|
+
"displayName": "admin",
|
13
|
+
"active": true
|
14
|
+
},
|
15
|
+
"components": [
|
16
|
+
{
|
17
|
+
"self": "http://localhost:2990/jira/rest/api/2/component/10001",
|
18
|
+
"id": "10001",
|
19
|
+
"name": "Jamflam",
|
20
|
+
"isAssigneeTypeValid": false
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"self": "http://localhost:2990/jira/rest/api/2/component/10000",
|
24
|
+
"id": "10000",
|
25
|
+
"name": "Jammy",
|
26
|
+
"description": "Description!",
|
27
|
+
"isAssigneeTypeValid": false
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"issueTypes": [
|
31
|
+
{
|
32
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/1",
|
33
|
+
"id": "1",
|
34
|
+
"description": "A problem which impairs or prevents the functions of the product.",
|
35
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/bug.gif",
|
36
|
+
"name": "Bug",
|
37
|
+
"subtask": false
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/2",
|
41
|
+
"id": "2",
|
42
|
+
"description": "A new feature of the product, which has yet to be developed.",
|
43
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/newfeature.gif",
|
44
|
+
"name": "New Feature",
|
45
|
+
"subtask": false
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/3",
|
49
|
+
"id": "3",
|
50
|
+
"description": "A task that needs to be done.",
|
51
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/task.gif",
|
52
|
+
"name": "Task",
|
53
|
+
"subtask": false
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/4",
|
57
|
+
"id": "4",
|
58
|
+
"description": "An improvement or enhancement to an existing feature or task.",
|
59
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/improvement.gif",
|
60
|
+
"name": "Improvement",
|
61
|
+
"subtask": false
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/5",
|
65
|
+
"id": "5",
|
66
|
+
"description": "The sub-task of the issue",
|
67
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/issue_subtask.gif",
|
68
|
+
"name": "Sub-task",
|
69
|
+
"subtask": true
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"assigneeType": "PROJECT_LEAD",
|
73
|
+
"versions": [],
|
74
|
+
"name": "Sample Project for Developing RoR RESTful API",
|
75
|
+
"roles": {
|
76
|
+
"Users": "http://localhost:2990/jira/rest/api/2/project/SAMPLEPROJECT/role/10000",
|
77
|
+
"Administrators": "http://localhost:2990/jira/rest/api/2/project/SAMPLEPROJECT/role/10002",
|
78
|
+
"Developers": "http://localhost:2990/jira/rest/api/2/project/SAMPLEPROJECT/role/10001"
|
79
|
+
},
|
80
|
+
"avatarUrls": {
|
81
|
+
"16x16": "http://localhost:2990/jira/secure/projectavatar?size=small&pid=10001&avatarId=10011",
|
82
|
+
"48x48": "http://localhost:2990/jira/secure/projectavatar?pid=10001&avatarId=10011"
|
83
|
+
}
|
84
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"self": "http://localhost:2990/jira/rest/api/2/project/SAMPLEPROJECT",
|
4
|
+
"id": "10001",
|
5
|
+
"key": "SAMPLEPROJECT",
|
6
|
+
"name": "Sample Project for Developing RoR RESTful API",
|
7
|
+
"avatarUrls": {
|
8
|
+
"16x16": "http://localhost:2990/jira/secure/projectavatar?size=small&pid=10001&avatarId=10011",
|
9
|
+
"48x48": "http://localhost:2990/jira/secure/projectavatar?pid=10001&avatarId=10011"
|
10
|
+
}
|
11
|
+
}
|
12
|
+
]
|
@@ -0,0 +1,276 @@
|
|
1
|
+
{
|
2
|
+
"expand": "schema,names",
|
3
|
+
"startAt": 0,
|
4
|
+
"maxResults": 50,
|
5
|
+
"total": 2,
|
6
|
+
"issues": [
|
7
|
+
{
|
8
|
+
"expand": "editmeta,renderedFields,transitions,changelog,operations",
|
9
|
+
"id": "10001",
|
10
|
+
"self": "http://localhost:2990/jira/rest/api/2/issue/10001",
|
11
|
+
"key": "SAM-2",
|
12
|
+
"fields": {
|
13
|
+
"summary": "Test issue 2",
|
14
|
+
"progress": {
|
15
|
+
"progress": 0,
|
16
|
+
"total": 0
|
17
|
+
},
|
18
|
+
"issuetype": {
|
19
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/10001",
|
20
|
+
"id": "10001",
|
21
|
+
"description": "",
|
22
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/ico_story.png",
|
23
|
+
"name": "Story",
|
24
|
+
"subtask": false
|
25
|
+
},
|
26
|
+
"votes": {
|
27
|
+
"self": "http://localhost:2990/jira/rest/api/2/issue/SAM-2/votes",
|
28
|
+
"votes": 0,
|
29
|
+
"hasVoted": false
|
30
|
+
},
|
31
|
+
"resolution": null,
|
32
|
+
"fixVersions": [],
|
33
|
+
"resolutiondate": null,
|
34
|
+
"timespent": null,
|
35
|
+
"creator": {
|
36
|
+
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
37
|
+
"name": "admin",
|
38
|
+
"emailAddress": "admin@example.com",
|
39
|
+
"avatarUrls": {
|
40
|
+
"16x16": "http://localhost:2990/jira/secure/useravatar?size=xsmall&avatarId=10122",
|
41
|
+
"24x24": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
42
|
+
"32x32": "http://localhost:2990/jira/secure/useravatar?size=medium&avatarId=10122",
|
43
|
+
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
44
|
+
},
|
45
|
+
"displayName": "admin",
|
46
|
+
"active": true
|
47
|
+
},
|
48
|
+
"reporter": {
|
49
|
+
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
50
|
+
"name": "admin",
|
51
|
+
"emailAddress": "admin@example.com",
|
52
|
+
"avatarUrls": {
|
53
|
+
"16x16": "http://localhost:2990/jira/secure/useravatar?size=xsmall&avatarId=10122",
|
54
|
+
"24x24": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
55
|
+
"32x32": "http://localhost:2990/jira/secure/useravatar?size=medium&avatarId=10122",
|
56
|
+
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
57
|
+
},
|
58
|
+
"displayName": "admin",
|
59
|
+
"active": true
|
60
|
+
},
|
61
|
+
"aggregatetimeoriginalestimate": null,
|
62
|
+
"created": "2014-07-18T23:30:43.000+0700",
|
63
|
+
"updated": "2014-07-18T23:30:44.000+0700",
|
64
|
+
"description": null,
|
65
|
+
"priority": {
|
66
|
+
"self": "http://localhost:2990/jira/rest/api/2/priority/3",
|
67
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/priorities/major.png",
|
68
|
+
"name": "Major",
|
69
|
+
"id": "3"
|
70
|
+
},
|
71
|
+
"duedate": null,
|
72
|
+
"customfield_10001": null,
|
73
|
+
"customfield_10002": null,
|
74
|
+
"customfield_10003": null,
|
75
|
+
"issuelinks": [],
|
76
|
+
"customfield_10004": null,
|
77
|
+
"watches": {
|
78
|
+
"self": "http://localhost:2990/jira/rest/api/2/issue/SAM-2/watchers",
|
79
|
+
"watchCount": 1,
|
80
|
+
"isWatching": true
|
81
|
+
},
|
82
|
+
"customfield_10000": null,
|
83
|
+
"subtasks": [],
|
84
|
+
"customfield_10009": "0|100004:",
|
85
|
+
"status": {
|
86
|
+
"self": "http://localhost:2990/jira/rest/api/2/status/1",
|
87
|
+
"description": "The issue is open and ready for the assignee to start work on it.",
|
88
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/statuses/open.png",
|
89
|
+
"name": "Open",
|
90
|
+
"id": "1",
|
91
|
+
"statusCategory": {
|
92
|
+
"self": "http://localhost:2990/jira/rest/api/2/statuscategory/2",
|
93
|
+
"id": 2,
|
94
|
+
"key": "new",
|
95
|
+
"colorName": "blue-gray",
|
96
|
+
"name": "New"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"labels": [],
|
100
|
+
"customfield_10005": null,
|
101
|
+
"workratio": -1,
|
102
|
+
"assignee": {
|
103
|
+
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
104
|
+
"name": "admin",
|
105
|
+
"emailAddress": "admin@example.com",
|
106
|
+
"avatarUrls": {
|
107
|
+
"16x16": "http://localhost:2990/jira/secure/useravatar?size=xsmall&avatarId=10122",
|
108
|
+
"24x24": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
109
|
+
"32x32": "http://localhost:2990/jira/secure/useravatar?size=medium&avatarId=10122",
|
110
|
+
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
111
|
+
},
|
112
|
+
"displayName": "admin",
|
113
|
+
"active": true
|
114
|
+
},
|
115
|
+
"aggregatetimeestimate": null,
|
116
|
+
"project": {
|
117
|
+
"self": "http://localhost:2990/jira/rest/api/2/project/10000",
|
118
|
+
"id": "10000",
|
119
|
+
"key": "SAM",
|
120
|
+
"name": "SAMPLEPROJECT",
|
121
|
+
"avatarUrls": {
|
122
|
+
"16x16": "http://localhost:2990/jira/secure/projectavatar?size=xsmall&pid=10000&avatarId=10011",
|
123
|
+
"24x24": "http://localhost:2990/jira/secure/projectavatar?size=small&pid=10000&avatarId=10011",
|
124
|
+
"32x32": "http://localhost:2990/jira/secure/projectavatar?size=medium&pid=10000&avatarId=10011",
|
125
|
+
"48x48": "http://localhost:2990/jira/secure/projectavatar?pid=10000&avatarId=10011"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
"versions": [],
|
129
|
+
"environment": null,
|
130
|
+
"timeestimate": null,
|
131
|
+
"aggregateprogress": {
|
132
|
+
"progress": 0,
|
133
|
+
"total": 0
|
134
|
+
},
|
135
|
+
"lastViewed": "2014-07-18T23:30:43.561+0700",
|
136
|
+
"components": [],
|
137
|
+
"timeoriginalestimate": null,
|
138
|
+
"aggregatetimespent": null
|
139
|
+
}
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"expand": "editmeta,renderedFields,transitions,changelog,operations",
|
143
|
+
"id": "10000",
|
144
|
+
"self": "http://localhost:2990/jira/rest/api/2/issue/10000",
|
145
|
+
"key": "SAM-1",
|
146
|
+
"fields": {
|
147
|
+
"summary": "Test issue 1",
|
148
|
+
"progress": {
|
149
|
+
"progress": 0,
|
150
|
+
"total": 0
|
151
|
+
},
|
152
|
+
"issuetype": {
|
153
|
+
"self": "http://localhost:2990/jira/rest/api/2/issuetype/10001",
|
154
|
+
"id": "10001",
|
155
|
+
"description": "",
|
156
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/ico_story.png",
|
157
|
+
"name": "Story",
|
158
|
+
"subtask": false
|
159
|
+
},
|
160
|
+
"votes": {
|
161
|
+
"self": "http://localhost:2990/jira/rest/api/2/issue/SAM-1/votes",
|
162
|
+
"votes": 0,
|
163
|
+
"hasVoted": false
|
164
|
+
},
|
165
|
+
"resolution": null,
|
166
|
+
"fixVersions": [],
|
167
|
+
"resolutiondate": null,
|
168
|
+
"timespent": null,
|
169
|
+
"creator": {
|
170
|
+
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
171
|
+
"name": "admin",
|
172
|
+
"emailAddress": "admin@example.com",
|
173
|
+
"avatarUrls": {
|
174
|
+
"16x16": "http://localhost:2990/jira/secure/useravatar?size=xsmall&avatarId=10122",
|
175
|
+
"24x24": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
176
|
+
"32x32": "http://localhost:2990/jira/secure/useravatar?size=medium&avatarId=10122",
|
177
|
+
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
178
|
+
},
|
179
|
+
"displayName": "admin",
|
180
|
+
"active": true
|
181
|
+
},
|
182
|
+
"reporter": {
|
183
|
+
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
184
|
+
"name": "admin",
|
185
|
+
"emailAddress": "admin@example.com",
|
186
|
+
"avatarUrls": {
|
187
|
+
"16x16": "http://localhost:2990/jira/secure/useravatar?size=xsmall&avatarId=10122",
|
188
|
+
"24x24": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
189
|
+
"32x32": "http://localhost:2990/jira/secure/useravatar?size=medium&avatarId=10122",
|
190
|
+
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
191
|
+
},
|
192
|
+
"displayName": "admin",
|
193
|
+
"active": true
|
194
|
+
},
|
195
|
+
"aggregatetimeoriginalestimate": null,
|
196
|
+
"created": "2014-07-18T23:30:26.000+0700",
|
197
|
+
"updated": "2014-07-18T23:30:26.000+0700",
|
198
|
+
"description": null,
|
199
|
+
"priority": {
|
200
|
+
"self": "http://localhost:2990/jira/rest/api/2/priority/3",
|
201
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/priorities/major.png",
|
202
|
+
"name": "Major",
|
203
|
+
"id": "3"
|
204
|
+
},
|
205
|
+
"duedate": null,
|
206
|
+
"customfield_10001": null,
|
207
|
+
"customfield_10002": null,
|
208
|
+
"customfield_10003": null,
|
209
|
+
"issuelinks": [],
|
210
|
+
"customfield_10004": null,
|
211
|
+
"watches": {
|
212
|
+
"self": "http://localhost:2990/jira/rest/api/2/issue/SAM-1/watchers",
|
213
|
+
"watchCount": 1,
|
214
|
+
"isWatching": true
|
215
|
+
},
|
216
|
+
"customfield_10000": null,
|
217
|
+
"subtasks": [],
|
218
|
+
"customfield_10009": "0|100000:",
|
219
|
+
"status": {
|
220
|
+
"self": "http://localhost:2990/jira/rest/api/2/status/1",
|
221
|
+
"description": "The issue is open and ready for the assignee to start work on it.",
|
222
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/statuses/open.png",
|
223
|
+
"name": "Open",
|
224
|
+
"id": "1",
|
225
|
+
"statusCategory": {
|
226
|
+
"self": "http://localhost:2990/jira/rest/api/2/statuscategory/2",
|
227
|
+
"id": 2,
|
228
|
+
"key": "new",
|
229
|
+
"colorName": "blue-gray",
|
230
|
+
"name": "New"
|
231
|
+
}
|
232
|
+
},
|
233
|
+
"labels": [],
|
234
|
+
"customfield_10005": null,
|
235
|
+
"workratio": -1,
|
236
|
+
"assignee": {
|
237
|
+
"self": "http://localhost:2990/jira/rest/api/2/user?username=admin",
|
238
|
+
"name": "admin",
|
239
|
+
"emailAddress": "admin@example.com",
|
240
|
+
"avatarUrls": {
|
241
|
+
"16x16": "http://localhost:2990/jira/secure/useravatar?size=xsmall&avatarId=10122",
|
242
|
+
"24x24": "http://localhost:2990/jira/secure/useravatar?size=small&avatarId=10122",
|
243
|
+
"32x32": "http://localhost:2990/jira/secure/useravatar?size=medium&avatarId=10122",
|
244
|
+
"48x48": "http://localhost:2990/jira/secure/useravatar?avatarId=10122"
|
245
|
+
},
|
246
|
+
"displayName": "admin",
|
247
|
+
"active": true
|
248
|
+
},
|
249
|
+
"aggregatetimeestimate": null,
|
250
|
+
"project": {
|
251
|
+
"self": "http://localhost:2990/jira/rest/api/2/project/10000",
|
252
|
+
"id": "10000",
|
253
|
+
"key": "SAM",
|
254
|
+
"name": "SAMPLEPROJECT",
|
255
|
+
"avatarUrls": {
|
256
|
+
"16x16": "http://localhost:2990/jira/secure/projectavatar?size=xsmall&pid=10000&avatarId=10011",
|
257
|
+
"24x24": "http://localhost:2990/jira/secure/projectavatar?size=small&pid=10000&avatarId=10011",
|
258
|
+
"32x32": "http://localhost:2990/jira/secure/projectavatar?size=medium&pid=10000&avatarId=10011",
|
259
|
+
"48x48": "http://localhost:2990/jira/secure/projectavatar?pid=10000&avatarId=10011"
|
260
|
+
}
|
261
|
+
},
|
262
|
+
"versions": [],
|
263
|
+
"environment": null,
|
264
|
+
"timeestimate": null,
|
265
|
+
"aggregateprogress": {
|
266
|
+
"progress": 0,
|
267
|
+
"total": 0
|
268
|
+
},
|
269
|
+
"lastViewed": "2014-07-18T23:30:28.576+0700",
|
270
|
+
"components": [],
|
271
|
+
"timeoriginalestimate": null,
|
272
|
+
"aggregatetimespent": null
|
273
|
+
}
|
274
|
+
}
|
275
|
+
]
|
276
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
{
|
2
|
+
"sprintMarkersMigrated": true,
|
3
|
+
"issues": [
|
4
|
+
{
|
5
|
+
"id": 10000,
|
6
|
+
"key": "SAM-1",
|
7
|
+
"hidden": false,
|
8
|
+
"typeName": "Story",
|
9
|
+
"typeId": "10001",
|
10
|
+
"summary": "Test issue 1",
|
11
|
+
"typeUrl": "http://localhost:2990/jira/images/icons/ico_story.png",
|
12
|
+
"priorityUrl": "http://localhost:2990/jira/images/icons/priorities/major.png",
|
13
|
+
"priorityName": "Major",
|
14
|
+
"done": false,
|
15
|
+
"assignee": "admin",
|
16
|
+
"assigneeName": "admin",
|
17
|
+
"hasCustomUserAvatar": false,
|
18
|
+
"autoUserAvatar": {
|
19
|
+
"letter": "a",
|
20
|
+
"color": "#f691b2"
|
21
|
+
},
|
22
|
+
"color": "#cc0000",
|
23
|
+
"estimateStatistic": {
|
24
|
+
"statFieldId": "customfield_10002",
|
25
|
+
"statFieldValue": {}
|
26
|
+
},
|
27
|
+
"statusId": "1",
|
28
|
+
"statusName": "Open",
|
29
|
+
"statusUrl": "http://localhost:2990/jira/images/icons/statuses/open.png",
|
30
|
+
"status": {
|
31
|
+
"id": "1",
|
32
|
+
"name": "Open",
|
33
|
+
"description": "The issue is open and ready for the assignee to start work on it.",
|
34
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/statuses/open.png",
|
35
|
+
"statusCategory": {
|
36
|
+
"id": "2",
|
37
|
+
"key": "new",
|
38
|
+
"colorName": "blue-gray"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"fixVersions": [],
|
42
|
+
"projectId": 10000,
|
43
|
+
"linkedPagesCount": 0
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"id": 10001,
|
47
|
+
"key": "SAM-2",
|
48
|
+
"hidden": false,
|
49
|
+
"typeName": "Story",
|
50
|
+
"typeId": "10001",
|
51
|
+
"summary": "Test issue 2",
|
52
|
+
"typeUrl": "http://localhost:2990/jira/images/icons/ico_story.png",
|
53
|
+
"priorityUrl": "http://localhost:2990/jira/images/icons/priorities/major.png",
|
54
|
+
"priorityName": "Major",
|
55
|
+
"done": false,
|
56
|
+
"assignee": "admin",
|
57
|
+
"assigneeName": "admin",
|
58
|
+
"hasCustomUserAvatar": false,
|
59
|
+
"autoUserAvatar": {
|
60
|
+
"letter": "a",
|
61
|
+
"color": "#f691b2"
|
62
|
+
},
|
63
|
+
"color": "#cc0000",
|
64
|
+
"estimateStatistic": {
|
65
|
+
"statFieldId": "customfield_10002",
|
66
|
+
"statFieldValue": {}
|
67
|
+
},
|
68
|
+
"statusId": "1",
|
69
|
+
"statusName": "Open",
|
70
|
+
"statusUrl": "http://localhost:2990/jira/images/icons/statuses/open.png",
|
71
|
+
"status": {
|
72
|
+
"id": "1",
|
73
|
+
"name": "Open",
|
74
|
+
"description": "The issue is open and ready for the assignee to start work on it.",
|
75
|
+
"iconUrl": "http://localhost:2990/jira/images/icons/statuses/open.png",
|
76
|
+
"statusCategory": {
|
77
|
+
"id": "2",
|
78
|
+
"key": "new",
|
79
|
+
"colorName": "blue-gray"
|
80
|
+
}
|
81
|
+
},
|
82
|
+
"fixVersions": [],
|
83
|
+
"projectId": 10000,
|
84
|
+
"linkedPagesCount": 0
|
85
|
+
}
|
86
|
+
],
|
87
|
+
"rankCustomFieldId": 10009,
|
88
|
+
"sprints": [],
|
89
|
+
"supportsPages": false,
|
90
|
+
"projects": [
|
91
|
+
{
|
92
|
+
"id": 10000,
|
93
|
+
"key": "SAM",
|
94
|
+
"name": "SAMPLEPROJECT"
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"epicData": {
|
98
|
+
"epics": [],
|
99
|
+
"canEditEpics": false,
|
100
|
+
"supportsPages": false
|
101
|
+
},
|
102
|
+
"canManageSprints": true,
|
103
|
+
"maxIssuesExceeded": false,
|
104
|
+
"queryResultLimit": 2147483647,
|
105
|
+
"versionData": {
|
106
|
+
"versionsPerProject": {
|
107
|
+
"10000": []
|
108
|
+
},
|
109
|
+
"canCreateVersion": true
|
110
|
+
}
|
111
|
+
}
|