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

Can you limit an alert from JSM based on an issue field

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2023

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?

1 answer

0 votes
Arumugam M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2023

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.

2023-05-25_18-46-24.png

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

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2023

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?

Capture.JPG

Arumugam M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 28, 2023

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

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 29, 2023

thanks, trying to suss that out now as it is 100% the case.

Thanks for the info.

Like Arumugam M likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events