Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setup rule to create an alert if a ticket is older than 30 mins in Operations (formerly Opsgenie)

Chris Walters
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 25, 2024

Hi Atlassian Community,

I hope you are all doing well.

We have recently moved our Opsgenie into Jira Service Management:

https://support.atlassian.com/jira-service-management-cloud/docs/start-shifting-from-opsgenie-to-jira-service-management/

I currently have a Team setup, and I have synced a Jira Service Management project to my Operations within this Team:

https://support.atlassian.com/jira-service-management-cloud/docs/what-is-sync/

I am trying setup a rule to create an alert if a ticket in my Jira Service Management project is older than 30 minutes:

Alert.png

The alert isn't getting generated, so I suspect I haven't configured this correctly.

If anyone can advise on how I can achieve this please, that would be great.

Thank you,

Chris

1 answer

1 accepted

1 vote
Answer accepted
Anusha A
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2024

Hi Chris,

Thank you for reaching out to Atlassian Community!

With the help of JSM automation, you can create an alert in Opsgenie. However, the Sync feature currently does not allow for specifying a condition based on the last updated time within the last 30 minutes. Below is a step-by-step guide on how to add a scheduled trigger.

  • Add a Scheduled Trigger: Begin by setting up a scheduled trigger in your automation rules.
  • Add Branching Action: In the branching section, select the option for JQL. Use the following JQL query to filter issues:

    project = "subtask event" AND updated <= "-30m"
  • Add Another Action: Next, add an action to send a web request. This action will be used to create an alert in JSM operations.
  • Use the API for Creating Alerts: You can utilize the following API endpoint to create an alert within the "send web request" action: Create Alert API Documentation.

By following these steps, you can effectively create an alert in Opsgenie based on the specified conditions, If you have any questions or need further assistance with the setup, feel free to ask!
Regards,
Anusha A
Chris Walters
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2024

Thank you @Anusha A !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events