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
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:
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 Haller ,
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nick Haller ,
Can I send opsgenie smart value in webhook url? like
https://{Custom_webhookUrl}?variable={{Alias}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.