ticket_abstractor_client 1.28.0 → 1.29.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ded94f5c8180e052cbbba7965f0b6b6f7bd94b7
|
4
|
+
data.tar.gz: 32c5b422fc531494a18993ffd332e50468c0dce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d57ad91f99f3627d536db958c38badeaa534b75b7ad1077a2c52b2226918531d61a22c03bcccafd33afe0ac89f223cb95c29168aa0bee21c70ae2c16729820d
|
7
|
+
data.tar.gz: 53c287a4c36de38fdbec00005fb1294bbc72f67e977199246760abaa29409e3e405d8cd910d4c8b92b47683cb78ccda312a5af0b03ed0fad0140aaaebe8d486f
|
data/README.md
CHANGED
@@ -246,6 +246,11 @@ Get data from flowfalcon graph:
|
|
246
246
|
# get comments
|
247
247
|
# :incident_id is required parameter.
|
248
248
|
client.service_now.get_comments(incident_id: '', table_name: 'incident', display_value: false)
|
249
|
+
|
250
|
+
# get all assignment groups:
|
251
|
+
client.service_now.get_all_groups()
|
252
|
+
client.service_now.get_all_groups(query: 'activeIStrue', limit: '100', fields: 'name,sys_id')
|
253
|
+
|
249
254
|
## Contributing
|
250
255
|
|
251
256
|
1. Fork it
|
@@ -75,31 +75,10 @@ class TicketAbstractorClient::JiraClient < TicketAbstractorClient::Client
|
|
75
75
|
get_with_endpoint "jira_v1/get_issues_by_query", query: query
|
76
76
|
end
|
77
77
|
|
78
|
-
def get_users_by_query(query)
|
79
|
-
get_with_endpoint 'jira_v1/get_users_by_query', query: query
|
80
|
-
end
|
81
|
-
|
82
78
|
def get_issues_statuses_by_search_query(issues_id)
|
83
79
|
get_with_endpoint 'jira/get_issues_statuses_by_search_query', issues_id: issues_id
|
84
80
|
end
|
85
81
|
|
86
|
-
##
|
87
|
-
# Get issues by jira filter
|
88
|
-
#
|
89
|
-
# == Parameters:
|
90
|
-
# filter_id:
|
91
|
-
# filter id in jira
|
92
|
-
#
|
93
|
-
# == Example:
|
94
|
-
# # get the list of first 50 issues by filter 24320
|
95
|
-
# >> client.jira.get_issues_by_filter 24320, 1, 50
|
96
|
-
# => [{ 'id' => 'ID-1', ... }, { 'id' => 'ID-2', ... }]
|
97
|
-
# >> client.jira.get_issues_by_filter 24320, 1, 50, show_total: true
|
98
|
-
# => total: 2, issues: [{ 'id' => 'ID-1', ... }, { 'id' => 'ID-2', ... }]
|
99
|
-
def get_issues_by_filter(filter_id, page = 0, per_page = 50, opts = {})
|
100
|
-
get_with_endpoint 'jira/get_issues_by_filter', filter_id: filter_id, page: page, per_page: per_page, show_total: opts.delete(:show_total)
|
101
|
-
end
|
102
|
-
|
103
82
|
def get_fields_by_project(project_key)
|
104
83
|
get_with_endpoint 'jira/get_fields_by_project', project_key: project_key
|
105
84
|
end
|
@@ -139,10 +118,6 @@ class TicketAbstractorClient::JiraClient < TicketAbstractorClient::Client
|
|
139
118
|
post_with_endpoint 'jira/add_comment', issue_key: issue_key, comment: comment
|
140
119
|
end
|
141
120
|
|
142
|
-
def add_activity(issue_key, comment, opts = {})
|
143
|
-
post_with_endpoint 'jira/add_activity', issue_key: issue_key, comment: comment, opts: opts
|
144
|
-
end
|
145
|
-
|
146
121
|
def transitions_list(issue_key)
|
147
122
|
get_with_endpoint 'jira/transitions_list', issue_key: issue_key
|
148
123
|
end
|
@@ -44,6 +44,10 @@ class TicketAbstractorClient::ServiceNowClient < TicketAbstractorClient::Client
|
|
44
44
|
get_with_endpoint 'service_now/get_stats', params
|
45
45
|
end
|
46
46
|
|
47
|
+
def get_all_groups(params = {})
|
48
|
+
get_with_endpoint 'service_now/get_all_groups', params
|
49
|
+
end
|
50
|
+
|
47
51
|
protected
|
48
52
|
def get_with_endpoint(url, args={}, params={})
|
49
53
|
params.merge! service_now_endpoint: @service_now_endpoint
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
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.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Roman Samoilov
|
8
|
+
- Max Reznichenko
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
@@ -55,6 +56,7 @@ dependencies:
|
|
55
56
|
description: Get access to Jira and Brouha ticketing systems through the single service
|
56
57
|
email:
|
57
58
|
- rsamoilov@productengine.com
|
59
|
+
- max.reznichenko@gmail.com
|
58
60
|
executables: []
|
59
61
|
extensions: []
|
60
62
|
extra_rdoc_files: []
|
@@ -69,7 +71,7 @@ files:
|
|
69
71
|
- lib/ticket_abstractor_client/service_now_client.rb
|
70
72
|
- lib/ticket_abstractor_client/sev_one_client.rb
|
71
73
|
- lib/ticket_abstractor_client/version.rb
|
72
|
-
homepage:
|
74
|
+
homepage: https://github.comcast.com/opsint/ticket-abstractor-client
|
73
75
|
licenses:
|
74
76
|
- MIT
|
75
77
|
metadata: {}
|