Hi there,
If I have a field on a JSM issue called "OpsgenieAlert" with a value of true or false, is it possible in Opsgenie to only create alerts from issues if that value is true?
Hey @Ste404 ,
Thank you for posting your question. This is Arumugam from Atlassian Support, happy to help!
Unfortunately, from Opsgenie side we don't have the option to filter alerts directly from the payload. However, if you are sending alerts to Opsgenie via Webhooks you should be able to filter the action to send alerts if the field has the value you are looking for.
Here is an example JQL for your reference, here OpsgenieAlert is a custom field in JSM.
You can also autoclose the alerts on Opsgenie side. For that, you can add the value from your custom field to the Extra Properties section in your alert and you can use Team Policies to close the alerts automatically.
You can learn more about JQL here: https://support.atlassian.com/jira-service-management-cloud/docs/advanced-search-reference-jql-fields/
You can learn more about Team policies in the link below:
https://support.atlassian.com/opsgenie/docs/create-and-manage-team-alert-policies/
Please let me know if you have any follow-up questions.
Thanks,
Arumugam
Hi there,
I set up the JQL that reads OpsGenieAlert = "true" which matches the custom field on the issue when it is created, but it doesn't fire.
Is the webhook triggering before the custom field update automation is run?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Ste404 ,
Yes, it could be possible that Webook is triggering before the automation rule is completed.
You might want to check if it is possible to invoke Webhook via Automation rules in Jira to see if that works for your use case.
Thanks,
Arumugam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks, trying to suss that out now as it is 100% the case.
Thanks for the info.
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.