sappho-data-publisher 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,9 +53,11 @@ module Sappho
53
53
  end
54
54
 
55
55
  def getJiraIssueDetails issue, pageData
56
- pageData['summary'] = summary = issue['summary']
57
- pageData['pagename'] = summary unless pageData['pagename']
58
- pageData['description'] = issue['description']
56
+ ['summary', 'description', 'assignee', 'components', 'created', 'duedate', 'priority',
57
+ 'project', 'reporter', 'resolution', 'status', 'type', 'updated'].each { |key|
58
+ pageData[key] = issue[key]
59
+ }
60
+ pageData['pagename'] = issue['summary'] unless pageData['pagename']
59
61
  pageData['cf'] = customFields = {}
60
62
  @allCustomFields.each { |customField|
61
63
  customFields[cfname customField['id']] = { 'name' => customField['name'] }
@@ -7,7 +7,7 @@ module Sappho
7
7
  module Data
8
8
  module Publisher
9
9
  NAME = 'sappho-data-publisher'
10
- VERSION = '0.2.1'
10
+ VERSION = '0.2.2'
11
11
  AUTHORS = ['Andrew Heald']
12
12
  EMAILS = ['andrew@heald.co.uk']
13
13
  HOMEPAGE = 'https://github.com/sappho/sappho-data-publisher/wiki'
@@ -5,6 +5,17 @@ TEST-42-A:
5
5
  summary: Testing 123
6
6
  pagename: Testing 123
7
7
  description: This is a test.
8
+ assignee:
9
+ components:
10
+ created:
11
+ duedate:
12
+ priority:
13
+ project:
14
+ reporter:
15
+ resolution:
16
+ status:
17
+ type:
18
+ updated:
8
19
  cf:
9
20
  !str 10500: { name: Service }
10
21
  !str 10501: { name: Type, values: [ Business Process ] }
@@ -15,6 +26,17 @@ TEST-42-B:
15
26
  summary: Testing 123
16
27
  pagename: Test Page
17
28
  description: This is a test.
29
+ assignee:
30
+ components:
31
+ created:
32
+ duedate:
33
+ priority:
34
+ project:
35
+ reporter:
36
+ resolution:
37
+ status:
38
+ type:
39
+ updated:
18
40
  cf:
19
41
  !str 10500: { name: Service }
20
42
  !str 10501: { name: Type, values: [ Business Process ] }
data/test/data/jira.yml CHANGED
@@ -11,6 +11,17 @@ issues:
11
11
  TEST-42:
12
12
  summary: Testing 123
13
13
  description: This is a test.
14
+ assignee:
15
+ components:
16
+ created:
17
+ duedate:
18
+ priority:
19
+ project:
20
+ reporter:
21
+ resolution:
22
+ status:
23
+ type:
24
+ updated:
14
25
  customFieldValues:
15
26
  - { customfieldId: customfield_10501, values: [ Business Process ] }
16
27
  - { customfieldId: customfield_10503, values: [ Bank of England ] }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sappho-data-publisher
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Heald
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-22 00:00:00 Z
18
+ date: 2012-08-10 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake