Skip to content

Commit

Permalink
feat(RD-985): Create Jira ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Aghamyan committed Oct 24, 2023
1 parent 67ff419 commit ab40f7f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,11 @@ def payload(alert_type,subject,aws_account,aws_alarmdescription,dimension_string

if os.environ['CREATE_JIRA_TICKET']:
all_data = items[0]["facts"]
description = "Description: \n{aws_alarmdescription}"
description += f"\n h2. Details"
description = "Description: "
description += f"\n{aws_alarmdescription}"
description += f"\n h2. Details\n"
description += f"\n".join([f"{item['title']}: {item['value']}" for item in all_data])
description += f"\nURL: {url}"
print("Create jira ticket")
create_jira_ticket(subject,description)

Expand Down

0 comments on commit ab40f7f

Please sign in to comment.