ticket_abstractor_client 1.6.0 → 1.7.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 +12 -0
- data/lib/ticket_abstractor_client/jira_client.rb +10 -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: a0d8fa5010f966e62aaaca7536986be6ba1d6b68
|
4
|
+
data.tar.gz: c811ae678d9cd59b4ff16a0532393e2a5336fa81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3064270e0dbc0181f4666b9acdf28b4716b795aae55b0f15f60fc9b6b5a73242727a9782f7ecaec26638326b2cf11058b452cf7adfcdf55e854ba3f26e72a241
|
7
|
+
data.tar.gz: 9b11a19af11b5c619314bcf0bf87556c31e05876025dee0756e8c9fa517e04c7479352fe6b3e4eb789b2a1a536dcfaf61ccdaf31e6834202e4066388f1eb0508
|
data/README.md
CHANGED
@@ -62,6 +62,12 @@ Grab issue:
|
|
62
62
|
client.jira.get_issue 'IFS-123'
|
63
63
|
client.jira.get_issue_status 'IFS-123'
|
64
64
|
|
65
|
+
Get issues by filter:
|
66
|
+
|
67
|
+
jira_filter_id = 2145
|
68
|
+
client.jira.get_issues_by_filter jira_filter_id #=> [{ issue_1 }, { issue_2 }, ...]
|
69
|
+
client.jira.get_issues_by_filter jira_filter_id, page, per_page, show_total: true #=> { total: 2, issues: [...] }
|
70
|
+
|
65
71
|
Create issue (project, summary, description and issuetype fields are required):
|
66
72
|
|
67
73
|
options = { project: "IFS", summary: "Summary", description: "Desc", issuetype: "Bug"}
|
@@ -72,6 +78,12 @@ Create issue with an attachment:
|
|
72
78
|
options = { project: "IFS", summary: "Summary", description: "Desc", issuetype: "Bug"}
|
73
79
|
attachment = File.new('file.png', 'rb')
|
74
80
|
client.jira.create_issue options, attachment
|
81
|
+
|
82
|
+
Create issue using Jira params:
|
83
|
+
|
84
|
+
options = { fields: { project: { key: "IFS" }, summary: "Summary", issuetype: { id: 82 } } }
|
85
|
+
attachment = File.new('file.png', 'rb')
|
86
|
+
client.jira.raw_create_issue options, attachment
|
75
87
|
|
76
88
|
Update issue (issuekey field is required):
|
77
89
|
|
@@ -101,7 +101,15 @@ class TicketAbstractorClient::JiraClient < TicketAbstractorClient::Client
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def create_issue(opts = {}, *attachments)
|
104
|
-
post_with_endpoint
|
104
|
+
post_with_endpoint 'jira/create_issue', { opts: opts }, attachments: attachments
|
105
|
+
end
|
106
|
+
|
107
|
+
def raw_create_issue(opts = {}, *attachments)
|
108
|
+
post_with_endpoint 'jira/raw_create_issue', { opts: opts }, attachments: attachments
|
109
|
+
end
|
110
|
+
|
111
|
+
def raw_update_issue(opts = {}, *attachments)
|
112
|
+
post_with_endpoint 'jira/raw_update_issue', { opts: opts }, attachments: attachments
|
105
113
|
end
|
106
114
|
|
107
115
|
def create_tvx_issue(opts = {})
|
@@ -109,7 +117,7 @@ class TicketAbstractorClient::JiraClient < TicketAbstractorClient::Client
|
|
109
117
|
end
|
110
118
|
|
111
119
|
def update_issue(opts = {}, *attachments)
|
112
|
-
post_with_endpoint
|
120
|
+
post_with_endpoint 'jira/update_issue', { opts: opts }, attachments: attachments
|
113
121
|
end
|
114
122
|
|
115
123
|
def add_comment(issue_key, comment)
|
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.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rsamoilov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|