youngmon/atlassian-qna huggingface dataset:
How to use opsgenie api to get alert list between a datetime range
Asked by gnaneswar seshu:

Hi,

I was trying to get alerts between a period of time, when I used the query as ""  
query": "createdAt\>=20-08-2024 and createdAt\<=22-08-2024" it is giving me some list of alerts but when I was trying the query including time within it for example ""  
query": "createdAt\>=20-08-2024'T'10:30:00z and createdAt\<=22-08-2024'T'18:30:00z I am not getting any alerts while I can see alerts from ui or app  
here is the sample url which is working:  
"[https://api.opsgenie.com/v2/alerts?limit=20\&sort=createdAt\&offset=20\&order=desc\&query=status+open+OR+closed+NOT+tag+QA+createdAt%3E31-07-2024+AND+createdAt%3C31-08-2024](https://api.opsgenie.com/v2/alerts?limit=20&sort=createdAt&offset=20&order=desc&query=status+open+OR+closed+NOT+tag+QA+createdAt%3E31-07-2024+AND+createdAt%3C31-08-2024)",  
Sample url which is not working  
"[https://api.opsgenie.com/v2/alerts?limit=20\&sort=createdAt\&offset=20\&order=desc\&query=status+open+OR+closed+NOT+tag+QA+createdAt%3E31-07-2024'T'10:30:00z+AND+createdAt%3C31-08-2024'T'18:30:00z](https://api.opsgenie.com/v2/alerts?limit=20&sort=createdAt&offset=20&order=desc&query=status+open+OR+closed+NOT+tag+QA+createdAt%3E31-07-2024'T'10:30:00z+AND+createdAt%3C31-08-2024'T'18:30:00z)",  
Thanks in advance


Answers:
author: Wei Wung
body: Hi [@gnaneswar seshu](/t5/user/viewprofilepage/user-id/5574205)

Thank you for reaching out!

Please try using this format:

```
createdAt>="20-08-2024T10:30:00Z" and createdAt<="22-08-2024T18:30:00Z"
```

The workaround in the following ticket addressed this issue as well:

<https://jira.atlassian.com/browse/OPSGENIE-1588> Incident API and Alert API using the "createdAt" condition display incorrect usage error
How can I create an alert in Opsgenie if the count of my emails exceeds 100 within 30 minutes?
Asked by Sanjana Nellore:

How can I create an alert in Opsgenie, after integrating with email, if the count of my emails exceeds 100 within 30 minutes?  
How to Create a new policy and set the condition to trigger when the count of emails reaches 100 within 30 minutes.?


Answers:
author: Muhammad Zeeshan
body: Hey [@Sanjana Nellore](/t5/user/viewprofilepage/user-id/5574203)

It may not be outright possible in Opsgenie to create an alert when you have 100 Emails received in 30 minutes, which is why we have a Feature suggestion ticket for such functionality here: <https://jira.atlassian.com/browse/OPSGENIE-471> that you can track and vote on.

However, as a workaround you can make use of [Notification policies](https://support.atlassian.com/opsgenie/docs/create-and-manage-team-alert-policies/#Notification-Policy) which can delay / suppress notifications until a certain deduplication count is met in a certain period for an alert but will not notify initially when the alert is created.

In order to make use of that you will need to make sure that all those alerts created via the Email integration are deduplicated so that they can be counted together as a single alert and their deduplication count used to trigger the notification policy:

![Screenshot 2024-08-23 at 15.21.59.png](https://community.atlassian.com/t5/image/serverpage/image-id/343483i3719F48082B22D3A/image-size/large?v=v2&px=999 "Screenshot 2024-08-23 at 15.21.59.png")

BR,


Tags: cloud

opsgenie-cloud
API to pull hours out per month
Asked by JONATHAN BOHLMANN:

We use another system to for schedule resourcing and would like to be able to pull monthly data out of Opsgenie. We have looked at the Get Schedule and Get Schedule timeline apis but don't see an easy way to pull this data. What we would like is something like this:

* October
  * Person 1 - 162 hours
  * Person 2 - 16 hours
  * Person 3 - 176 hours
* November
  * ...

This would allow us to then import into our resource allocation software (Netsuite - Openair).

Has anyone done something like this before?


Answers:
author: Elelta D
body: Hey there Jonathan,

Thanks for posting here with an interesting problem, as you state the Get Schedule api does not give you the time a person was on call.

The analytics with Opsgenie would have this information in the format you need it, it is possible to schedule an export of this data in a CSV format to be delivered to on of the Opsgenie users.

Here is an outline of how to do that.

<https://community.atlassian.com/t5/Opsgenie-articles/Creating-a-Scheduled-Report-in-Opsgenie-Explanation-of/ba-p/2720680>

would this wokr for you?
Can i restore deleted team?
Asked by Kaloyan G_ Georgiev:

A team was deleted by mistake and now we need to recover it. it would be best to recover all data and setups, but only the schedule would be good enough.

Is this possible.


Answers:
author: Mona Singh
body: Hi [@Kaloyan G_ Georgiev](/t5/user/viewprofilepage/user-id/5513724) ,

This is Mona here, happy to help :)

Unfortunately, we will not be able to recover a deleted team in Opsgenie directly from the UI. You'll have to recreate the team and configuration in it according to the data in the logs.  

If the team was deleted within the last 13 days, you can check the Logs in your account under Settings and search for **"Team \[TEAM NAME\] deleted" or "Team" AND "deleted".** Once you have the data, you can perform the restoration manually by adding the Team in the UI and configuring it as per the logs retrieved.

The other way would be to create Team, Routing, Escalation, Schedule \& Rotations using the API Endpoints.  

[Create Team](https://docs.opsgenie.com/docs/team-api#section-create-team)  
[Create Schedules](https://docs.opsgenie.com/docs/schedule-api#section-create-schedule)   
[Create Escalations](https://docs.opsgenie.com/docs/escalation-api#section-create-escalation)   
[Create Routing Rules](https://docs.opsgenie.com/docs/team-routing-rule-api#section-create-team-routing-rule)   
[Create Integration](https://docs.opsgenie.com/docs/integration-api#section-create-api-based-integration)

Please let me know if this works for you. Incase you have any further queries, please feel free to reach out to us by creating a ticket in this [link](https://support.atlassian.com/) and we'll take it from there :)  

Thanks!  
Mona

comments: author: Kaloyan G_ Georgiev
body: Thank you, Mona! Appreciate the response!


Tags: cloud

opsgenie-cloud
Opsgenie Priority mapping from Statuspage
Asked by Dominic Utz:

Hi all,   

my question is hopefully simple to solve.   

I wanna map the Priority (or as Statuspage name it, "impact") from the incoming alerts to the Priority inside of opsgenie.   

we use Datadog to set the priority and trigger alerts within Statuspage. Statuspage then communicates a failure to Opsgenie and this is where I reach the limitation because although Datadog has set the priority, Statuspage does not pass it on to Opsgenie.  

Can somebody help here? :)  

Thank u and have a great week  
Dominic


Answers:
author: Rafael Meira
body: Hey [@Dominic Utz](/t5/user/viewprofilepage/user-id/5571380)   

Can you check these steps to [map priority](https://support.atlassian.com/opsgenie/docs/what-is-the-priority-level-of-integration/) from Statuspage to Opsgenie?  

**Check Integration Settings** for additional field mapping.  
**Use Tags/Custom Fields** to set priorities via [Opsgenie rules.](https://support.atlassian.com/opsgenie/docs/add-a-forwarding-rule/)  
[**Create Policies**](https://support.atlassian.com/opsgenie/docs/create-and-manage-maintenance-policies/) to adjust priorities based on alert conditions.  
**Use Opsgenie's [API](https://docs.opsgenie.com/docs/api-overview)** to update priorities programmatically.  

If these steps don't resolve the issue, please open a support ticket at [Atlassian Support](https://support.atlassian.com/contact/). so our team could assist and troubleshoort it.  

<https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-statuspage/>


Tags: datadog

statuspage
Configure SSO with Azure AD (Entra ID)
Asked by Ronald Heijn Buys:

Do I need Atlassian Access? Because I see you have to pay for it before I can integrate with Azure AD (Entra ID)?


Answers:
author: Tejaswi G
body: Hi [@Ronald Heijn Buys](/t5/user/viewprofilepage/user-id/5562003)

This is Tejaswi from the Atlassian support team and happy to help.

If you are using the Atlassian login and wish to login to Opsgenie with Azure AD via SSO. You need to use the Atlassian Access (Atlassian Guard) to setup this. Ideally, You should not be billed for the users using only the Opsgenie for the SSO.

You can refer to Guard page [here](https://support.atlassian.com/subscriptions-and-billing/docs/manage-your-bill-for-atlassian-guard-standard/) for more details on this.

Kind Regards,  
Tejaswi


Tags: cloud

opsgenie-cloud
?Alert in Opsgenie from JSM ticket value
Asked by Dario Alarc?n:

Hello community, I need your help. I am currently a Jira administrator in training, I have a standard license and I need to know if it is possible to automatically generate an alert in Opsgenie from a ticket created in JSM?

If possible, can some data be taken from the ticket?

For example: Priority or some text in the ticket description or summary? or the type of request?

I hope you can help me with this concern, if you have any explanatory material to share with me it would be of great help. I have a test environment in which I could carry out. If you need any additional information, I am at your disposal.


Answers:
author: Alicia Peebles
body: Hi [@Dario Alarc?n](/t5/user/viewprofilepage/user-id/5307057) !

You can setup Opsgenie alerts from JSM requests! You will need to integrate your JSM with Opsgenie but once that is done, then you can set alerts based on many different components.

Here is some documentation for you to refer to: [Integrate Opsgenie with Jira Service Management Cloud \| Opsgenie \| Atlassian Support](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management-cloud/)

I am not sure if the recent merger of Opsgenie into the JSM platform changes this process, as I have not completed that.

Hope that helps! Have an awesome week!

comments: author: Dario Alarc?n
body: Hi [@Alicia Peebles](/t5/user/viewprofilepage/user-id/5415758)

Thanks for you reply. Actually I?m using Opsgenie with Jira **Service Management's****Standard** **plan**, that to say, with the merged version.

I followed the steps from the documentation but didn't find the JSM Cloud integration in the search.  
I would like to know if that is possible to enable in my JSM projects?  
I have different request types to configure alerts in Opsgenie.  
Community, I will keep atent to you comments.


author: Alicia Peebles
body: Hi [@Dario Alarc?n](/t5/user/viewprofilepage/user-id/5307057)

There is a clarification in the documentation for the Standard plan, Integrations are not in the Settings on the Standard plans. It does say you can add to a dashboard, however, this is only for 1 team. That could make setting the alerts a bit more difficult, if you are trying to do it for multiple teams.

![2024-08-15_08-59-45.png](https://community.atlassian.com/t5/image/serverpage/image-id/341981i5D0AECFB6782E8B7/image-size/large?v=v2&px=999 "2024-08-15_08-59-45.png")


Tags: alert

jira-service-management

monitoring
history of emails received by Opsgenie , or a relevant report
Asked by Maryam Gharib:

Dear Community ,

We seem to be having an issue that the email alert we sending to Opsginie from Sqlserver every 5 mins but it seems .

The Opsgenie has a 15 mins span wait time to receive this email and if after 15mins it doesn't receive it in sets off an alert.

Everything was fine up until yesterday but for the last 24 hours Opsgenie seems not receiving all the emails hence we receiving alerts where they are really false alerts as it seems the Opsgenie not getting the emails in the 5 mins time spans .

I was wondering if there is any reporting or tool we could use to see what Opsgenie is receiving.

Many thanks in advance.


Answers:
author: Maryam Gharib
body: Hi Alan,  
Thanks for getting back to me. ?  
Is it because I don't have admin settings I can't see the logs from the Settings?

**Settings** {#toc-hId--349617843}
----------------------------------

**My Profile**  
[Profile](https://id.atlassian.com/manage-profile)  
[Profile settings](https://onthebeach.app.opsgenie.com/settings/user/profile)  
[Notifications](https://onthebeach.app.opsgenie.com/settings/user/notification)  
[Your on-call schedule](https://onthebeach.app.opsgenie.com/settings/user/onCallSchedule)  
[Forwarding rules](https://onthebeach.app.opsgenie.com/settings/user/forwardingRules)  
**Integrations**  
[Heartbeats](https://onthebeach.app.opsgenie.com/settings/heartbeat)  
**Incident Config**  
[Conference rooms](https://onthebeach.app.opsgenie.com/settings/conferences)  
[Incident templates](https://onthebeach.app.opsgenie.com/settings/incident-templates)  
[Response roles](https://onthebeach.app.opsgenie.com/settings/response-roles)  
[Email templates](https://onthebeach.app.opsgenie.com/settings/email-templates)  
Thanks again  
Maryam


author: Alan Violada
body: Hey Maryam, Alan from the Opsgenie Support Team here.

From your description, it seems that you might be using the Heartbeat feature and using emails to maintain the heartbeat. Correct me if I'm wrong!

To validate what is being received, your best bet would be using the logs in the "**Settings -\> Logs**" tab. That should show you everything coming in and out of the Opsgenie instance, and all actions taken.

You can also use search queries to filter this down, related documentation:

[Search logs](https://support.atlassian.com/opsgenie/docs/search-logs/)

Also some documentation on the Heartbeats functionality:

[Heartbeats documentation](https://support.atlassian.com/opsgenie/docs/add-heartbeats-to-monitor-external-systems/)

If you need more detailed assistance, feel free to create a ticket at [Atlassian Support](https://support.atlassian.com) and we will be happy to help troubleshoot!

Regards,

Alan


Tags: cloud
Integration to Zabbix 7.0 Using Webhook Template
Asked by Eric Leo Lidi Okala:

Hi All,

I've been working on the integration from Zabbix to Jira Helpdesk. Having some difficulties trying to get the zabbix triggers to create jira tickets. Any advise would be great to help me with this integration.

So far, I have created the API key to authenticate the connection and have used the correct project key to identify which project account the ticket is to be raised. Using the test feature is successful. However, its still not populating the tickets other from the manual testing.

Regards,

Eric


Answers:
author: Rafael Meira
body: Hey [@Eric Leo Lidi Okala](/t5/user/viewprofilepage/user-id/5568088)   

To further investigate, since ti is a integration issue and we would need to request access permission to your account, I would recommend you to create a ticket with out support here:  

<https://support.atlassian.com/contact/#/>   

<br />

Best,  
Rafa

comments: author: Eric Leo Lidi Okala
body: Hi Rafael,

Appreciate the update, I will request account admin to request support ticket on behalf my department.

Regards,

Eric


author: Rafael Meira
body: [@Eric Leo Lidi Okala](/t5/user/viewprofilepage/user-id/5568088) Your welcome :)


Tags: jira-helpdesk

zabbix
How do you export your on-call schedule and see only yourself, not the team?
Asked by Emily Carpenter:

When I go to an on-call schedule I can export the calendar that lists the entire team's schedule. But I only want to see my own on-call schedule on my Google Calendar, not my teammates'. How do I do this?

When I go to Settings \> Your On-Call Schedule it only shows 1 of my 2 on-call rotations. This is where I would think to export it, but it is not clear why it isn't showing both.


Answers:
author: Elelta D
body: Hey there Emily,

Welcome to the community :-)

I see you would like to export your rotations but you cannot see the two teams that you work in, are you able to navigate to Teams and see the rotation from that screen? If you are a member of a team you should be able to see the on-call schedule.

That all said, it is not possible to download JUST your own schedule, you get the whole team's schedule.

If you goal is to get notified of you upcoming rotation, I recommend setting up your [notification rules.](https://support.atlassian.com/opsgenie/docs/create-and-manage-notification-preferences/#:~:text=Schedule%20Start%2C%20etc).-,Notification%20Rules,-Watch%20Using%20notification) You can, for example, you can configure it so you get an email or a text a few days before your scheduled shift, you have the option to get notified about the start and the end of your schedule.

* **Schedule Start:** Your on-call rotation is being started.

* **Schedule End:**Your on-call rotation is being ended.

I hope this help, please do let me know if you have further questions :)

Cheers

Elelta
Opsginie incident handler from Salesforce Case
Asked by Ricardo Gonzalez:

Can Opsgenie monitor events from Salesforce Service cloud?

then create tickets in Jira, etc?


Answers:
author: Slifer
body: Yes, Opsgenie can track events from Salesforce Service Cloud and create tickets in Jira, along with supporting various other integrations. Here's an overview of how it works:

#### 1. Salesforce Service Cloud Integration: {#toc-hId-351332475}

- Event Monitoring: Opsgenie can be connected with Salesforce Service Cloud to monitor specific events like case creation, status updates, or other defined triggers.  
- Custom Workflows: You can configure custom workflows in Salesforce to send notifications or trigger API calls to Opsgenie when certain events occur.

#### 2. Generating Alerts in Opsgenie {#toc-hId--1456121988}

- Once integrated, Opsgenie can receive these events as alerts.  
- These alerts can include detailed information from Salesforce, such as the case number, description, and priority level.

#### 3. Initiating Actions (e.g., Creating Jira Tickets) {#toc-hId-1031390845}

- Jira Integration: Opsgenie seamlessly integrates with Jira, enabling it to automatically create issues or tickets in Jira based on the alerts it processes.  
- Automation Rules: You can set up automation rules in Opsgenie to define when and how these tickets are created in Jira. For instance, if a high-priority case is logged in Salesforce, an alert can trigger the creation of a corresponding high-priority ticket in Jira.

#### 4. Bidirectional Synchronization: {#toc-hId--776063618}

- In some configurations, Opsgenie can keep the Jira ticket updated with changes from Salesforce and vice versa, ensuring both systems remain synchronized.

#### 5. Escalations and Notifications: {#toc-hId-1711449215}

- Opsgenie can escalate issues, notify the appropriate teams, and perform additional actions based on the alert status or responses from Jira.

#### 6. Setting Up the Integration: {#toc-hId--96005248}

<https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-salesforce-service-cloud/>
Can i restrict a notification policy to only on specific calendar days
Asked by Kaloyan G_ Georgiev:

Hello All,

We have a on-call rotation for which we do not want to receive notifications to on-call users during working hours. This is why we created a notification policy which suppresses notification during regular business hours (Monday to Friday).

The issue is that we want to have this schedule to accommodate for public holidays.

For example if there is a public holiday on Wednesday, we would like the policy to be disabled and the on-call user to get notified.

is that possible


Answers:
author: Sean Suwal
body: Hi Kaloyan,

Thank you for contacting the Atlassian Community!

Currently, we don't have the ability to import/ list public holidays into Opsgenie. However, we do have a feature request [OPSGENIE-781](https://jira.atlassian.com/browse/OPSGENIE-781) open. Please vote and add yourself as a watcher to be notified of any updates.

In saying that, the workaround for you would be to create a [maintenance policy](https://support.atlassian.com/opsgenie/docs/create-and-manage-maintenance-policies/) for the public holiday that then disables/ enables the notification policy you have in place.

I hope this helps.

Regards,  
Sean


Tags: cloud

opsgenie-cloud
How do you set up notifications when a P1 alert is acked but not closed?
Asked by Edgardo Isaula:

Im trying to set up notifications for P1 alerts, the alert is recedved, and then acked, but i want to notify after a certain period of time when this alert is not closed but just acked


Answers:
author: Chris DeGidio
body: Hi [@Edgardo Isaula](/t5/user/viewprofilepage/user-id/5566653)

You would set this up in the team escalation policy. There are two options to select during a notification step/event. If the alert is not closed or if the alert is not ackd. You will want to add a step for not closed:

![2024-08-13_13-57-21.png](https://community.atlassian.com/t5/image/serverpage/image-id/341578i94FDB97684EBF37D/image-size/large?v=v2&px=999 "2024-08-13_13-57-21.png")

comments: author: Edgardo Isaula
body: Hello [@Chris DeGidio](https://community.atlassian.com/t5/user/viewprofilepage/user-id/3202394) ! thank you for your answer! However, I saw that option, but the problem with it, is that it applies it to all of the alerts (P1-P5), it does not let me customize it by priority, for example, if I want to notify x user if a P1 alert is acked but not closed in 120 min, and another one, I want to notify x user if a P2 alert is acked but not closed in 180 min, so we can meet SLAs especifically.  

Thanks in advance.


author: Chris DeGidio
body: hi [@Edgardo Isaula](/t5/user/viewprofilepage/user-id/5566653) you would apply a different escalation policy dependent on the details of the alert via a routing rule. So for example for a p1 you can route that alert to its own escalation policy seperate from other alerts with different priorities.

![2024-08-14_08-19-28.png](https://community.atlassian.com/t5/image/serverpage/image-id/341743iE6D96E99DA8EC9D7/image-size/large?v=v2&px=999 "2024-08-14_08-19-28.png")


author: Edgardo Isaula
body: Thank you [@Chris DeGidio](/t5/user/viewprofilepage/user-id/3202394) that worked great :)


author: Edgardo Isaula
body: .


Tags: cloud

jira-service-management
OpsGenie event management and observability
Asked by Fabio Santos:

How OpsGenie event management-related functionalities compare with regards to other observability platforms own event managers?


Answers:
author: Mubeen Mohammed
body: Hello [@Fabio Santos](/t5/user/viewprofilepage/user-id/5531864)

Thank you for contacting the Atlassian Community!

Opsgenie offers robust event management features, making it a strong choice compared to other observability platforms.

1. **Alerting and Notification:** Advanced alerting with customizable policies and multiple notification methods.

2. **Incident Management:** Seamless incident creation and tracking, with strong integration with tools like Jira.

3. **Integrations:** Extensive integrations with monitoring and collaboration tools for enhanced workflows.

4. **Event Correlation:** Effective alert correlation and deduplication to reduce noise.

5. **On-Call Management:** User-friendly on-call scheduling with automated escalation policies.

6. **Reporting and Analytics:** Detailed insights into incident trends and operational performance.

To explore Opsgenie's full capabilities, you can start a trial at [this link](https://www.atlassian.com/software/opsgenie/try).

I hope the details provided are helpful.

Regards

Mubeen Mohammed

Cloud Support Engineer


Tags: observability