brpm_module_servicenow 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/automations/update_change_request.meta +15 -0
- data/automations/update_change_request.rb +8 -0
- data/config.yml +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MGMyYjczYTA0NTMzNDU5NjQ5YTc5YWQ1ODRmY2Q2Mzg4MDg1NzE0Zg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NzA2ZjJhYzlkNzJlMzI2ZmU5NTgwZDgwMDA4MGU5NDA5MTNjMzNkOQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YWZlNGMyNGY1ZmUyYjcyZjkxNDQ0NzZlODE2YTZmNTk0YTA3MmI5N2MyYWJl
|
|
10
|
+
Y2VmNGMyMmRhZTM4MjkxZTM0YWUzNWU4MDhiYzlmODE0YTY0YmEyMTI3MzIx
|
|
11
|
+
YTI2YzIxMDdkODk2OGY3MzJlNjIzZmI3NmZhOGNmNzcxY2UwMTQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NzkwMmI2ZGE1MTFjZDgyMTQ2ZGE3MTliMWIzM2YwYmMwM2I3NGY0OTNhM2Q4
|
|
14
|
+
M2UxY2I3ZTBjMGQ3OWEzMTc4OGM0ZmI2NTc3OTBmYTA3MWJjZjhjZWI1OTRi
|
|
15
|
+
MGI1NjFhYjlhNzIxOTU3NmM3Nzk5MTZiODYzOTQ2ZjQxYjA5Mjk=
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
params:
|
|
2
|
+
change_request_id:
|
|
3
|
+
name: Change request id (optional, if not specified the change request id of the request param will be used)
|
|
4
|
+
position: A1:C1
|
|
5
|
+
fields:
|
|
6
|
+
name: Fields
|
|
7
|
+
position: A2:F2
|
|
8
|
+
change_request_url:
|
|
9
|
+
name: Change request url
|
|
10
|
+
type: out-url
|
|
11
|
+
position: A1:E1
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
integration_server_type: ServiceNow
|
|
15
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
change_request_id = BrpmAuto.all_params["change_request_id"]
|
|
2
|
+
|
|
3
|
+
raise "No change request id was specified." if change_request_id.nil? or change_request_id.empty?
|
|
4
|
+
|
|
5
|
+
snow_rest_client = SnowRestClient.new
|
|
6
|
+
snow_rest_client.update_record("change_request", change_request_id, BrpmAuto.all_params["fields"])
|
|
7
|
+
|
|
8
|
+
BrpmAuto.pack_response("change_request_url", "#{BrpmAuto.integration_settings.dns}/nav_to.do?uri=change_request.do?sys_id=#{change_request_id}")
|
data/config.yml
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brpm_module_servicenow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Niek Bartholomeus
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: brpm_content_framework
|
|
@@ -67,6 +67,8 @@ files:
|
|
|
67
67
|
- Rakefile
|
|
68
68
|
- automations/transition_change_request.meta
|
|
69
69
|
- automations/transition_change_request.rb
|
|
70
|
+
- automations/update_change_request.meta
|
|
71
|
+
- automations/update_change_request.rb
|
|
70
72
|
- config.yml
|
|
71
73
|
- lib/snow_rest_client.rb
|
|
72
74
|
- module.gemspec
|