Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opsgenie-create-alert Tags arg to list #32616

Merged
merged 7 commits into from Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.py
Expand Up @@ -77,6 +77,7 @@ def responders_to_json(responders: List, responder_key: str, one_is_dict: bool =

def create_alert(self, args: dict):
args['responders'] = argToList(args.get('responders'))
args['tags'] = argToList(args.get('tags'))
if args.get('details') and not isinstance(args.get('details'), dict):
args['details'] = {key_value.split('=')[0]: key_value.split('=')[1]
for key_value in argToList(args.get('details'))}
Expand Down
8 changes: 4 additions & 4 deletions Packs/OpsGenie/Integrations/OpsGenieV3/OpsGenieV3.yml
Expand Up @@ -533,7 +533,7 @@ script:
- description: Role of user. It may be one of admin, user or the name of a custom role you've created.
name: role
required: true
description: Invite a user to OpsGenie
description: Invite a user to OpsGenie.
name: opsgenie-invite-user
outputs:
- contextPath: OpsGenie.User.Id
Expand Down Expand Up @@ -1166,7 +1166,7 @@ script:

polling: true
- name: opsgenie-get-teams
description: Get teams
description: Get teams.
arguments:
- name: team_id
description: The ID of the team from Opsgenie.
Expand All @@ -1188,7 +1188,7 @@ script:
type: String
- name: opsgenie-get-request
polling: true
description: Get a request in Opsgenie
description: Get a request in Opsgenie.
arguments:
- name: output_prefix
deprecated: true
Expand Down Expand Up @@ -1392,7 +1392,7 @@ script:
- contextPath: OpsGenie.AddAlertDetails.success
description: Whether the request was successful.
type: Boolean
dockerimage: demisto/python3:3.10.13.81631
dockerimage: demisto/python3:3.10.13.86272
isfetch: true
script: '-'
type: python
Expand Down
7 changes: 7 additions & 0 deletions Packs/OpsGenie/ReleaseNotes/2_0_23.md
@@ -0,0 +1,7 @@

#### Integrations

##### OpsGenie v3

- Fixed an issue where **opsgenie-create-alert** failing when using **Tags** argument.
jbabazadeh marked this conversation as resolved.
Show resolved Hide resolved
- Updated the Docker image to: *demisto/python3:3.10.13.86272*.
2 changes: 1 addition & 1 deletion Packs/OpsGenie/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "OpsGenie",
"description": "Get current on-call assignments, schedules, and users info",
"support": "xsoar",
"currentVersion": "2.0.22",
"currentVersion": "2.0.23",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down