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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 505909a186f7ebd48629c855bf03380be9a19d2b
4
- data.tar.gz: 5d5abd2061e6e1bc1ea2fa4f88edcd38b7c08f7e
3
+ metadata.gz: a0d8fa5010f966e62aaaca7536986be6ba1d6b68
4
+ data.tar.gz: c811ae678d9cd59b4ff16a0532393e2a5336fa81
5
5
  SHA512:
6
- metadata.gz: bb036f20c3d313d6f6ba2a99428ec731c469cd64b0086a68e0e5468bc64735c0c7f15d30337103702b8d9aaf4c0b18a1a9a2956da3646bb8b8ceb46d4c1aebc3
7
- data.tar.gz: 7693bba0275ce85f820fca067134202c6d3f801ffa4956ec0b332bbcb458fc01f7dcdc340467cf17d69af5322270d6507190227582fe15c5486a8273d68b8821
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('jira/create_issue', { opts: opts }, attachments: attachments)
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('jira/update_issue', { opts: opts }, attachments: attachments)
120
+ post_with_endpoint 'jira/update_issue', { opts: opts }, attachments: attachments
113
121
  end
114
122
 
115
123
  def add_comment(issue_key, comment)
@@ -1,3 +1,3 @@
1
1
  module TicketAbstractorClient
2
- VERSION = '1.6.0'
2
+ VERSION = '1.7.0'
3
3
  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.6.0
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-09-29 00:00:00.000000000 Z
11
+ date: 2014-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler