Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,192
Community Members
 
Community Events
184
Community Groups

Opsgenie webhook request with json body

Hi guys,

I'd like to trigger a webhook and change the issue status linked with the Opsgenie alert while press ack button, I've checked the Jira REST API

POST /rest/api/2/issue/{issueIdOrKey}/transitions

There's an integration called "Webhook" in Opsgenie, then I found out I need to input transition id as key, but I can't find "Body" section to get it done.

Any advise?

Kind regards,

Carlos

1 answer

1 accepted

0 votes
Answer accepted
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 17, 2023

Hi @Carlos Chang ,

I don't believe that would be possible with the Webhook integration. The Jira integration can transition the status of the issue when the Opsgenie alert is ack'd though:

jira1.jpg

 

If the status you want to transition to is not available, you could also use OEC. Although OEC is typically used for on-prem Jira instances, there is a use case for cloud instances when you need to map custom fields or statuses.

With this, OEC would sit in the middle of Opsgenie and Jira. Opsgenie alert actions would send to OEC, which will then execute a script to transition the status of the Jira issue.

You can modify the OEC script to customize things such as configure the ack-action to transition the Jira issue's status. 

Hi @Nick H ,

Thank you for your clarity, I'll put OEC into the test.

Btw, why is your Opsgenie capable of changing so many statuses while mine only has the "Done" option?

Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 18, 2023

My screenshoot is of the Jira integration which provides a few more status options. The JSM integration only had the Done option available at this time.

I believe you can use the Jira integration for a JSM project though as the configuration for the legacy integrations is identical.

Hi @Nick H ,

Can I send opsgenie smart value in webhook url? like

https://{Custom_webhookUrl}?variable={{Alias}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events