ticket_abstractor_client 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -67,13 +67,51 @@ Attach the file to issue:
67
67
 
68
68
  attachment = File.new('file.png', 'rb')
69
69
  client.jira.update_issue({ issuekey: 'IFS-123' }, attachment)
70
-
70
+
71
+ Create incident (project, summary, description and issuetype fields are required):
72
+
73
+ options = { project: "IFS", summary: "Summary", description: "Desc", issuetype: {id: "3"},
74
+ customfields: {
75
+ customfield_1: {id: "22"},
76
+ customfield_2: {value: "No Impact"}
77
+ }}
78
+ client.jira.create_tvx_issue options
79
+
71
80
  ### Brouha
72
81
 
73
82
  Grab issue:
74
83
 
75
84
  client.brouha.get_issue '12'
76
-
85
+
86
+ Create issue:
87
+
88
+ options = {
89
+ severity: 'Severity 5',
90
+ title: 'incident title',
91
+ bridge: '123456789',
92
+ summary: 'incident description',
93
+ product: 'Xfinity Voice',
94
+ service: 'voicemail',
95
+ division: 'incident division',
96
+ desk: 'incident desk',
97
+ opened_by: 'incident manager',
98
+ start_time: 'incident start time'
99
+ }
100
+
101
+ client.brouha.create_issue options
102
+
103
+ List products:
104
+
105
+ client.brouha.list_products
106
+
107
+ List services:
108
+
109
+ client.brouha.list_services
110
+
111
+ List desks:
112
+
113
+ client.brouha.list_desks
114
+
77
115
  ### iTRC
78
116
 
79
117
  Find apps:
@@ -24,10 +24,11 @@ module TicketAbstractorClient
24
24
  end
25
25
  end
26
26
 
27
+ require 'json'
27
28
  require 'rest_client'
28
29
  require 'ticket_abstractor_client/version'
29
30
  require 'ticket_abstractor_client/client'
30
31
  require 'ticket_abstractor_client/jira_client'
31
32
  require 'ticket_abstractor_client/brouha_client'
32
33
  require 'ticket_abstractor_client/itrc_client'
33
- require 'ticket_abstractor_client/i_logger_client'
34
+ require 'ticket_abstractor_client/i_logger_client'
@@ -2,4 +2,8 @@ class TicketAbstractorClient::BrouhaClient < TicketAbstractorClient::Client
2
2
  def get_issue(issue_key)
3
3
  get "ticket/brouha/#{issue_key}"
4
4
  end
5
+
6
+ def create_issue(params = {})
7
+ post "ticket/brouha", params
8
+ end
5
9
  end
@@ -61,6 +61,10 @@ class TicketAbstractorClient::JiraClient < TicketAbstractorClient::Client
61
61
  post('jira/create_issue', { opts: opts }, attachments: attachments)
62
62
  end
63
63
 
64
+ def create_tvx_issue(opts = {})
65
+ post 'ticket/jira', opts
66
+ end
67
+
64
68
  def update_issue(opts = {}, *attachments)
65
69
  post('jira/update_issue', { opts: opts }, attachments: attachments)
66
70
  end
@@ -1,3 +1,3 @@
1
1
  module TicketAbstractorClient
2
- VERSION = '1.0.4'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticket_abstractor_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-14 00:00:00.000000000 Z
12
+ date: 2014-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler