Skip to content

Commit

Permalink
TheHive custom fields fix (#35893)
Browse files Browse the repository at this point in the history
* Fix case of value is dictionary

* added RN

* Updated docker image
  • Loading branch information
Shellyber authored Aug 15, 2024
1 parent 4e5aa4a commit 45f4472
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ def update_remote_system_command(client: Client, args: dict) -> str:
changes = {k: v for k, v in parsed_args.delta.items() if k in parsed_args.data}
demisto.debug(f'Changes from update_remote_system: {changes}')
# Convert the values: severity, pap and tlp to integer as the api request
changes = {k: (int(v) if v.isdigit() else v) for k, v in changes.items()}
changes = {k: (int(v) if isinstance(v, str) and v.isdigit() else v) for k, v in changes.items()}
if parsed_args.remote_incident_id:
# Apply the updates
client.update_case(case_id=parsed_args.remote_incident_id, updates=changes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ script:
- name: get-modified-remote-data
arguments: []
description: Gets the list of incidents that were modified since the last update time. Note that this method is here for debugging purposes. The get-modified-remote-data command is used as part of a Mirroring feature, which is available from version 6.1.
dockerimage: demisto/python3:3.11.9.106968
dockerimage: demisto/python3:3.11.9.107902
isfetch: true
subtype: python3
ismappable: true
Expand Down
7 changes: 7 additions & 0 deletions Packs/TheHiveProject/ReleaseNotes/1_1_22.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#### Integrations

##### TheHive Project

- Fixed an issue where mirror out would fail when changing *custom fields*.
- Updated the Docker image to: *demisto/python3:3.11.9.107902*.
2 changes: 1 addition & 1 deletion Packs/TheHiveProject/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "TheHive Project",
"description": "Provides an integration, incident type and layout for use with TheHive Project.",
"support": "xsoar",
"currentVersion": "1.1.21",
"currentVersion": "1.1.22",
"author": "aburt-demisto",
"url": "",
"email": "",
Expand Down

0 comments on commit 45f4472

Please sign in to comment.