ticket_abstractor_client 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/lib/ticket_abstractor_client/jira_client.rb +2 -2
- data/lib/ticket_abstractor_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d150c4e093b4360b9b1dcc6cf09a6265e9ccb9a1
|
4
|
+
data.tar.gz: 4e5ebb2195cb493b4333149cf541061100474fa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e4654b8a9f97d9b7de3e8f97ff3ec0b331762806fbc136eda4877ebd9a4ebe4a4fbd2fa1041a644895cc129c98be82a3b4f66155b2283485c25e6bdeee62b35
|
7
|
+
data.tar.gz: c610118d55484aa1661c533d2028e253a18e87834292a5bce870aaa146bba894972c16347f4768d3c1c4bd503a871c1439bc8d5fe2863e0e0e2c940db4dc1d38
|
data/README.md
CHANGED
@@ -103,6 +103,21 @@ Create incident (project, summary, description and issuetype fields are required
|
|
103
103
|
}}
|
104
104
|
client.jira.create_tvx_issue options
|
105
105
|
|
106
|
+
Add comment to the issue (issuekey and comment fields are required):
|
107
|
+
|
108
|
+
client.jira.add_comment(issuekey: 'IFS-123', comment: 'comment to ticket')
|
109
|
+
|
110
|
+
Add an actiity to the issue (issuekey, comment and opts fields are required):
|
111
|
+
opts should containt {generator: { id:, display_name:}, event_id:}
|
112
|
+
|
113
|
+
client.jira.add_activity(issuekey: 'IFS-123', comment: 'activity comment to ticket',
|
114
|
+
generator: {
|
115
|
+
id: 'https://intel.xcal.tv',
|
116
|
+
display_name: 'OIV'
|
117
|
+
},
|
118
|
+
event_id: '23456'
|
119
|
+
)
|
120
|
+
|
106
121
|
### Brouha
|
107
122
|
|
108
123
|
Grab issue:
|
@@ -139,7 +139,7 @@ class TicketAbstractorClient::JiraClient < TicketAbstractorClient::Client
|
|
139
139
|
post_with_endpoint 'jira/add_comment', issue_key: issue_key, comment: comment
|
140
140
|
end
|
141
141
|
|
142
|
-
def add_activity(issue_key, comment,
|
143
|
-
post_with_endpoint 'jira/add_activity', issue_key: issue_key, comment: comment,
|
142
|
+
def add_activity(issue_key, comment, opts = {})
|
143
|
+
post_with_endpoint 'jira/add_activity', issue_key: issue_key, comment: comment, opts: opts
|
144
144
|
end
|
145
145
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticket_abstractor_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rsamoilov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|