Skip to content

Commit

Permalink
added user information
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed Nov 22, 2024
1 parent cb768cf commit 92f03c9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .ansible-sign/sha256sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ f24230fbcf3e3e8ead1a35ca1bc06ee6279cdd60180129a1d78e90dced09ce8f roles/servicen
a464004cbb41d95d683f7a25ae37a1813d17be673a1b2a834186ac123bd961fb roles/servicenow_change_request_wait/defaults/main.yml
5c15d56df4f343e4cee23d1f94953b6ff9f524ada30033d0c488835bbdcea6eb roles/servicenow_change_request_wait/tasks/main.yml
de2faeda622d9985f01ed5df7b6af5367c9cd9549f07482331906bb9c444a022 roles/servicenow_cmdb/tasks/main.yml
ff3929b837d3f4fc566a99cb85dac0ee1f26311cf370c08dc75ed8e073c5084c roles/servicenow_ritm_retrieve_eda/tasks/main.yml
da6f66eb6ce0706331cd9b565085444c67640bd8d1e175224f89c8f5fb1868fc roles/servicenow_ritm_retrieve_eda/tasks/main.yml
70c16b04f073bd76d518d043e29db8b862d2b48d72ffa3ce9d61279e370efdc4 roles/servicenow_ticket/defaults/main.yml
b8cab364bf2b85691fae7cf83f1340ae5e5b4fe0f6829068ab6955c924651412 roles/servicenow_ticket/tasks/main.yml
fe2192caf1621560b49616cf159cee58ceace50035641059bc52d5ed4b2f62f5 roles/servicenow_ticket/tasks/servicenow_close.yml
Expand Down
22 changes: 11 additions & 11 deletions .ansible-sign/sha256sum.txt.sig
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmdAsaIACgkQTiIiIXrU
DNE7zAv/bhTDWWPhA4XjiDv2ND2TH05y9oFC5q2IiY8r0XKk9EsnzEhSPZcumuC+
GsAV42v6vB6qK2c8HULFuQ10H5K7v/9dbX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12 changes: 12 additions & 0 deletions roles/servicenow_ritm_retrieve_eda/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
ritm_details: "{{ ritms.record }}"
cacheable: true

- name: Retrieve user details with retries
servicenow.itsm.api_info:
resource: sys_user
sysparm_query: sys_idIN{{ ritm_details | map(attribute='requested_for.value') | join(',') }}
columns: [email]
register: userinfo
when: ritm_details | length > 0
until: userinfo.record is defined and userinfo.record | length > 0
retries: 3
delay: 5

- name: Retrieve variable mappings with retries
servicenow.itsm.api_info:
resource: sc_item_option_mtom
Expand Down Expand Up @@ -112,6 +123,7 @@
data:
enriched_event: "{{ enriched_event }}"
original_event: "{{ req_number | default({}) }}"
user: "{{ userinfo.record[0].email }}"

- name: Display consolidated enriched_event
ansible.builtin.debug:
Expand Down

0 comments on commit 92f03c9

Please sign in to comment.