youngmon/atlassian-qna huggingface dataset:
OpsGenie App: time format in 24 hour instead of am/pm mode, is this possible
Asked by Richard Bos:

Is it possible to get the times shown on the 2 screenshots below in 24h mode.

**Quiet Hours Screen**

![Screenshot_20200828-170549_Opsgenie.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/108456i2AE95748D2C0A470/image-size/large?v=v2&px=999 "Screenshot_20200828-170549_Opsgenie.jpg")

**Schedule Screen**

![Screenshot_20200828-170346_Opsgenie.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/108457iE55E382B1690E983/image-size/large?v=v2&px=999 "Screenshot_20200828-170346_Opsgenie.jpg")

Perhaps there are more screens, where it should be adjusted.

When it is not possible to change to 24h time mode, can it be added to the app.

The 24h time mode will be very welcomed, as the above format is hard to digest.


Answers:
author: Jonas Martinez
body: Hello Richard,

Thanks for bringing this to our attention. Currently, we do not show the 24hr time format inside Opsgenie. We will be creating a feature request for you to address this issue with our development team. Keep in mind this does not guarantee if/when an ETA for this issue will be rolled out. We recommend you contact us at our support chat for any updates regarding this request. Thank you for using Opsgenie!  

Thanks,  
Jonas

comments: author: Richard Bos
body: Thanks for creating the feature request. Can you provide the feature request ID?

The same issue is seen on the 1 day schedule overview:

![ksnip_20200911-093135.png](https://community.atlassian.com/t5/image/serverpage/image-id/109961i7C13ADD157920679/image-size/large?v=v2&px=999 "ksnip_20200911-093135.png")

Can I report is under this issue, or do you want to receive another community question?

I hope this update is sufficient. Same with the other issue, can you let me know the bug issue number.


author: Jonas Martinez
body: Hi Richard, the feature request ID is PLT-6733. We don't have a public-facing request interface, but you can contact us via our chat if you want to ask for any updates for this request! You don't need to submit a new one, I have forwarded your update to the ticket.


author: Martin Vancl
body: [@Jonas Martinez](/t5/user/viewprofilepage/user-id/3878079) is there anything new? The AM/PM format is very annoying.


author: rteixeira
body: Yes AM/PM is really confusing.
Connecting Opsgenie with Jira Software
Asked by Alexander Developer:

We need to connect Opsgenie to Jira Software (Jira Cloud).  
Account Jira and Opsgenie are already connected with each other.  
According to the text (<https://docs.opsgenie.com/docs/jira-software-cloud>) there must be the Jira Software button but it doesn't appear. What reason that button is absent?![image_2020_08_27T14_39_51_900Z.png](/t5/image/serverpage/image-id/108225i55C86DDE9353BCDD/image-size/large?v=v2&px=999 "image_2020_08_27T14_39_51_900Z.png")![image_2020_08_27T14_43_23_404Z.png](/t5/image/serverpage/image-id/108224i6D80A066C32CA226/image-size/large?v=v2&px=999 "image_2020_08_27T14_43_23_404Z.png")


Answers:
author: Nick H
body: Hi [@Alexander Developer](/t5/user/viewprofilepage/user-id/3199308) ,

I'm not entirely sure what button you are looking for, but I believe you are referring to the option to Create or Link Issues within an alert. Those options should appear here in an alert after you link your account:

![Jira button 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/110121i483C2BE7096CF300/image-size/large?v=v2&px=999 "Jira button 1.jpg")![Jira button 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/110122iFF4C7C026DAA30CF/image-size/large?v=v2&px=999 "Jira button 2.jpg")

When searching that doc for "button" - the only other thing I can think of is the ellipsis button that appears here to create an issue with all fields:

![Jira button 3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/110124i8F00A7D65B9A81D5/image-size/large?v=v2&px=999 "Jira button 3.jpg")![Jira button 4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/110123i7000575A1DFCFFDD/image-size/large?v=v2&px=999 "Jira button 4.jpg")

Let me know if you are looking for another button, if you have additional questions, etc.

-Nick


Tags: cloud

jira
Sync confluence calendar with Opsgenie schedule
Asked by Annelien van Drooge:

Is there a way to pull in information from an external calendar such as a confluence calendar into an on call schedule in Opsgenie? For instance to reflect that a team member has a training or holiday planned and that an override is needed for a particular date.


Answers:
author: Jonas Martinez
body: Hi Annelien,

I'm afraid we currently do not offer this functionality inside Opsgenie at the moment. We will be creating a feature request for you to address this with our development team. Keep in mind this does not guarantee if/when an ETA for this issue will be rolled out.

For the time being, the only other way you can create a schedule override outside of the Opsgenie UI would be with our Schedule Override API <https://docs.opsgenie.com/docs/schedule-override-api#general-information>

Thanks,

Jonas

comments: author: Richard Bos
body: I'm interested in the same. Can you provide the feature request ID, please.

Any idea this will be available. Is it possible to provide input for this?


author: Jonas Martinez
body: Hi Richard, the feature request ID is HEIMDALL-1457.

We don't have a public-facing request interface, but you can contact us via our chat if you want to ask for any updates for this request! And yes, you can definitely provide input for this feature request!


author: Matt Brown
body: Hi [@Jonas Martinez](/t5/user/viewprofilepage/user-id/3878079) any update on that feature request?


author: Matt Brown
body: Crickets... I built a tool to help with this issue in the meantime: <https://oncall-optimizer.com/>


Tags: cloud

calendar

confluence

sync
'Who is On Call API' only returns 'nextOnCallParticipants' for current rotation, rather than all.
Asked by Lee Herring:

Hello,

We are implementing a feature to set a 'backup' caller who will be available for call in our software, this is generated when someone starts through the previous member of the same rotation. In cases where the next person to be on call has been over-ridden, we want to select the person who has been over-ridden to be the backup caller.

The 'Who is On Call' currently correctly shows 'exactNextOnCallParticipants' for multiple rotations, however where we could expect 'nextOnCallParticipants' to show next on call for both rotations before overrides, this isn't the case. We only get 1 entry.

The image describes our current example case. As **CH** comes online, **HS** will want to be on backup.

![Screenshot 2020-08-25 at 17.31.43.png](https://community.atlassian.com/t5/image/serverpage/image-id/107903iD96F592BC0BCD926/image-dimensions/423x326?v=v2 "Screenshot 2020-08-25 at 17.31.43.png")

Querying the 'Who is On Call API' for the next person to be on call is expected to respond with:

*nextOnCallParticipants=\['HS','KR'\]*

*exactNextOnCallParticipants=\['CH',BG'\]*

however we get:

*nextOnCallParticipants=\['KR'\]*

*exactNextOnCallParticipants=\['CH',BG'\]*

We are unsure why HS is being omitted here other than because they are on a separate rotation, however CH is shown what ways do we have to access who was overridden if not for this endpoint?

Kind regards


Answers:
author: Robert
body: Hi [@Lee Herring](/t5/user/viewprofilepage/user-id/4063058) !

That is the intended behavior for the on-call API - it lines up with how Opsgenie escalates issues within a single on-call schedule as well: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/108239i7A52A8E2C1F80C03/image-size/large?v=v2&px=999 "image.png")

Generally, rotations are meant to separate things like regional teams. If you are looking to set up a backup then the best option is to break that out into its own "backup schedule" instead of a backup rotation. That would give you a little more control over when to notify users in each of those rotations.

That will also let you pull who is on call and who is backup using the on-call endpoint here (albeit with two requests): <https://docs.opsgenie.com/docs/who-is-on-call-api#get-on-calls>

Please let me know if you're still running into issues getting this up and running, but it sounds like that might resolve most of the problems you're running into!
Create alerts with alias through integration rest API
Asked by myron lioz:

Hi,

I am trying trying to create an alert in opsgenie using Logz.io integration

```
https://api.eu.opsgenie.com/v1/json/logzio?apiKey=XXXX
```

and JSON:

```
{ "alert_title": "my new alert", "alert_description": "new alert description", "alias": "my alert alias"}
```

The alert is created fine but not with the specified alias. Why is this?


Answers:
author: Robert
body: Hi [@myron lioz](/t5/user/viewprofilepage/user-id/4048430) !

I think the main issue here is the payload for two different "integrations" are being combined.

[**For the Alert API** you have complete control over the alert fields and can set them in the request to Opsgenie.](https://docs.opsgenie.com/docs/alert-api#)

**For 3rd party integrations** like logz.io, Opsgenie does not control the payload format being used. While you can "mock" a specific request using the integration's field (as you did in your post), the way those fields translate onto the alert is mostly determined by the integration settings:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/106939i8DD67A48905DC786/image-size/large?v=v2&px=999 "image.png")

So if you want to use this method to set an alias in the logz.io integration, what you'd really need to do is set the fields that make up the alert alias according to the integration settings in Opsgenie. That is, make sure the alias is set in the integration settings, then set the *fields that make up the alias* in the payload to Opsgenie.

Does that help clarify why the request you sent wasn't setting the alias?


Tags: cloud
Using Incident API trial account
Asked by myron lioz:

Hi,

I'm trying to resolve an incident using the Incident REST API. However I'm getting this

```
{ "message": "You do not have the right to use Incident API", "took": 0.063, "requestId": "8558ee08-46ee-4355-941c-db82f3900970"}
```

I am using the API Key I generated in the API Managament Section in the setting menu in the header of my POST request:

```
curl --location --request POST 'https://api.eu.opsgenie.com/v1/incidents/a77eb578-aea7-45c2-bb85-da17827d1ff7/resolve?identifierType=id' \--header 'Authorization: GenieKey XXXXXXXXX' 
```

Why don't I have the rights if I'm the owner user?


Answers:
author: Robert
body: Hi [@myron lioz](/t5/user/viewprofilepage/user-id/4048430) !

This sounds like it may be a plan restriction. Can you try upgrading your trial to standard or enterprise and try the request again? Here are the steps to update your trial:

<https://intercom.help/opsgenie/en/articles/3505298-changing-your-trial-plan>

comments: author: Kate Clavet
body: Just a note, I updated the above post to remove the API Key :)


author: myron lioz
body: Thank you!


Tags: cloud
Are alerts ever archived or deleted automatically?
Asked by Paul Hicks:

I can currently find all the alerts ever raised in any of my Opsgenie accounts. Assuming that the service and my accounts remain active, will this always be true? Or will sufficiently-old alerts eventually become un-findable?

Should I start planning annual archiving of old alerts?


Answers:
author: Prince Nyeche
body: I believe on Opsgenie, you can save the searches of alerts in order to filter Alerts. As far I know, those alerts closed or acknowledge are moved to a different filter in your search and is available at all times. you can further filter the search based on a time frame or custom time range. So if you want to order your alert, better you create and save a search and name that search based on your preference for a more structural look.

comments: author: Paul Hicks
body: I'm just thinking about "old" alerts, not about queries or states or the layout of query results. If I closed an alert 5 years ago, could I still find it? What if it was closed 15 years ago? 100 years ago?

I know it's purely theoretical: I'm writing the runbooks for managing our incident history, and I want to know if I need to include a process to export the alerts at regular intervals. I know I'll have to do it before Opsgenie reaches end-of-life, but if that was the only time I had to do it, it would make my runbooks smaller :)


author: Prince Nyeche
body: Hey [@Paul Hicks](/t5/user/viewprofilepage/user-id/2826038)

I believe you should be able to find it, there isn't any limit as far as I can see because the time range can go as far back but it would be a good practice to always export the alert at yearly intervals and archive somewhere else.


author: Paul Hicks
body: That's what I've been guessing too. It would be great to have it confirmed. Seems like a useful bit of info to add to the documentation. Helpful for those of us who have to deal with some level of compliance overhead.


Tags: cloud
Sending e-mail when alert is created in OpsGenie
Asked by Ma?gorzata Kosecka:

Hi! I am working with OpsGenie right now and I have a question about E-mail Integration.

Is it possible to send an e-mail from OpsGenie to specific e-mail address when alert is created?

For example an alert with specific tag was created and it would trigger OpsGenie to send an e-mail to defined in integration e-mail address with maybe even customised content?

As I understand right now E-mail integration is creating an alert in OpsGenie when e-mail is received on defined in integration e-mail address. I am curious if there is a way to do the opposite?


Answers:
author: Jonas Martinez
body: Hello Malgorzata,

The only way we'd be able to send emails when an alert is created inside Opsgenie is to send the notification to a user responder, where you will be able to set whichever email you choose to get notified via the responders of said alert.   

<br />

![Screen Shot 2020-08-14 at 4.44.44 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/106799i7B2D3799A0CC98EE/image-size/large?v=v2&px=999 "Screen Shot 2020-08-14 at 4.44.44 PM.png")  

If you want to only get alerted with tags, I suggest you create a Global alert policy that will only be active when an alert comes in that matches your tag  

![Screen Shot 2020-08-14 at 4.23.26 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/106796iC9EB11B8FCFAAA6C/image-dimensions/633x505?v=v2 "Screen Shot 2020-08-14 at 4.23.26 PM.png")

You can always contact us via chat if you need any additional assistance setting this up. Hope this helps!


author: Matthew Mcclure
body: Are you still looking for an answer on this? You could set this up by using the OpsGenie edge connector installed on an in house server/workstation. Then use a powershell script for the create action to send an email.


Tags: atl-gruland

email
How Opsgenie works with Nagios and Jira?
Asked by Shah Baloch:

I didn't find much information in the documentation that how Opsgenie works with Jira and Nagios. We're looking for a system that we can Integrate it with Nagios and Jira. I mean whenever there will be a Nagios issue alert it should create a Jira ticket. or If there is an existing ticket then it should not create a duplicate ticket. Each type of alert should be created with a different issue or a different project. For example, I create a project "Nagios Incidences" and have Issue types or Components "Applications, Database, Server" etc, if there are Application related alerts it should choose the "Application" issue type or Component, if it is a database related alert it should pick up the "Database" Issue type or component. Each Issue Type or Component should be auto-assign to the concerned team or a user. I mean application issues should assign to the Application team and database alert to the Database team.

Here are my questions

How I can integrate it with Jira and Nagios?

Can I map multiple issue types, or Components or Projects?

Will it auto-assign the issue to the concerned team base on alerts?

Will it not create a duplicate ticket if the issue not resolved yet?

Will not create a duplicate ticket if receive the "Recovery" email?

<br />

Before submitting a proposal to the purchasing team, I just want to make sure it will work according to our needs. Thank you for helping.


Answers:
author: Shah Baloch
body: This can be close, I reached out to the support. Thanks


Tags: alert

integration

issue-type

jira

nagios

project
How can I get the Zendesk ticket ID in the Opsgenie alert?
Asked by Ben Wickens:

Having implemented the [Opsgenie \<\> Zendesk integration](https://docs.opsgenie.com/docs/zendesk-integration-v2#what-does-opsgenie-offer-zendesk-users) I am successfully generating Alerts when a specific ticket is raised. All is good. However, the alert does not contain the ticket ID, only the ticket description. How would I enrich the alert content to include the id?


Answers:
author: Robert
body: Hi [@Ben Wickens](/t5/user/viewprofilepage/user-id/4045053) !

If you open up your Zendesk integration and click the "edit" icon in the Create Alert rule, you should see a window like this:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/106285i10816FFD8316AADF/image-size/large?v=v2&px=999 "image.png")

The {{id}} field should correspond to the ticketId coming from Zendesk

Hope this helps!

Robert


Tags: cloud

zendesk
Bitbucket Search option is not working
Asked by VS Reddy:

Hello,

My Bitbucket Search option is not working.When i try to search something it doesnt work.

\*It says search currently Unavailable.

Can anyone please help me here.

Many Thanks


Answers:
author: VS Reddy
body: I am seeing this on every page.

comments: author: Robert
body: [@VS Reddy](/t5/user/viewprofilepage/user-id/4034186) Is this in Opsgenie? Or in Bitbucket?


author: VS Reddy
body: IT is in Bitbucket


author: Robert
body: Hi [@VS Reddy](/t5/user/viewprofilepage/user-id/4034186)

Are you seeing this after linking a repository with a service in Opsgenie? If not, which pages are you seeing this on?

comments: author: VS Reddy
body: I am seeing this error "SEARCH IS CURRENTLY UNAVAILABLE" in all the pages.
Auto Close policy after deduplication count reaches 100.
Asked by Bogdan Dumitru:

I have a notification policy that applies to all alerts where notifications are delayed unless the alert occurs 10 time within 11 minutes and also has an Auto Close policy for 10 minutes after the last occurence.  

The problem is that, if an alert is not resolved and reaches a deduplication count of 100 (the maximum before the count stops going up), the auto close policy kicks in and closes the original alert and a new alert gets created, thus restarting the notification policy and resending notifications about every 2 hours.  

Is there a way to fix this or get around it? Preferably, the auto close policy would not activate even if the deduplication count is 100 seeing OpsGenie is in fact still receiving alerts, just not increasing the deduplication count.


Answers:
author: Nicki
body: Would be great to get this auto-close feature, or continue counting past 100. I'd prefer the auto-close.


author: Brennan Kiely
body: Hi Bogdan,

Right now, this functionality can't be changed. However, we do have a feature request to keep counting the alerts past 100 for the auto-close policies. The ticket number for this is ALX-3024. We don't have an external-facing Jira to track these, but you can reach out to us and reference that number if you're looking for an update in the future.

-Brennan

comments: author: Bogdan Dumitru
body: Hi Brennan,  
Thank you for your response. It's too bad that we cannot do this for now, but we will wait. In the mean time, is there any way to mitigate or get around this using other OpsGenie features?

- Bogdan


author: Brennan Kiely
body: Unfortunately, there isn't a great workaround for this right now. You could probably rig something up with OEC to run some custom scripts to handle this differently, but it's really probably more trouble than it's worth to go through.


Tags: cloud
Using OpsGenie WebHook integration for Azure Monitor alerts originating from a LogAnalytics query
Asked by OpsGenie:

Hello Community!

Looking for anyone with experience in setting up Alerts from Azure monitor originating from a LogAnalytics query. Preferably using the payload created using the Azure Common Alert Schema. However a Custom Payload is also interesting.

I'm currently struggling getting data from Azure interpreted by OpsGenie. It appears that the AlertContext generated by Azure is not interpreted by any of the standard integrations in OpsGenie.

Perhaps this is a dead end, but I'm curious to hear if anyone here did get this to work or if I should resort to using the email-integration.


Answers:
author: Allen Barnard
body: Hello Anders,

Welcome to the community, our Support Engineers are well versed at parsing custom payloads using our documented string processing methods. Our engineers will need to access the logs in your instance they will need to send you a link requesting permission to access your instance, this is best done via private communication, I would suggest starting a chat with one of our Support Engineers to facilitate the access request. While on the Opsgenie webpage, there is a blue chat bubble located a the bottom right-hand side of the screen, if you start a chat a Support Engineer should respond within 3 minutes.  

Here are some docs that you might find useful:

<https://docs.opsgenie.com/docs/string-processing-methods>  

<https://docs.opsgenie.com/docs/microsoft-azure-integration>


Tags: cloud

integration

json

webhook
Execute an in-line powershell script
Asked by Gerard Vaz:

I need to automate a SQL script against an Oracle database using a Bamboo build via PowerShell inline commands. The credentials are not to be displayed in the inline script but managed via variables.

My code looks like this

$user = "\<username\>"  
$password = "\<password\>"   
$tnsalias = "\<TNS_ALIAS\>"  
$SqlQuery = "@C:\\Test.sql"  
$bambooExecutionLog = "C:\\Test.log"  
#  
C:\\sqlplus $bambooUser/$bambooPassword@$tnsalias $SqlQuery

However, it fails with the following error message

ORA-01017: invalid username/password; logon denied

Any help/suggestions would be appreciated.


Answers:
author: Gerard Vaz
body: I managed to resolve the issue myself :-)