youngmon/atlassian-qna huggingface dataset:
Find Alerts where Notes field is blank
Asked by Lalit Narvekar:

I want to search the alerts where there are no notes or notes field is blank.

We basically need list of alerts which are acknowledge but no work has been done on it.

Can someone please help me in this.

I tried below but its not working

notes: null

notes is null


Answers:
author: Talar Pavlovic
body: Hey there Lalit,

Thanks for writing into Opsgenie Community, I'm Talar from the Atlassian team, happy to help.

At this time there isn't an option to Search / Query on the Notes field of Alerts - having said this, we have a [Feature Request](https://jira.atlassian.com/browse/OPSGENIE-1004) in place with our product team requesting the option to be added. I have gone ahead and added your request to this ticket and recommend voting for / commenting on it as well to help its visibility.

Hope this helps!

Regards,  
Talar


Tags: cloud
Gitlab deployments or pipeline alerts not created in Opsgenie
Asked by Ivan Ferreira:

?Hi community! I'm testing the GitLab integration with Opsgenie. Alerts for push events are working, but alerts are not created for pipeline/deployment events.

In GitLab, I can see that the webhooks are triggered correctly.

![opsgenie-webhook.png](/t5/image/serverpage/image-id/234477i9906379E620A50C2/image-size/large?v=v2&px=999 "opsgenie-webhook.png")

But in Opsgenie logs, I see this error meesage: Generated alias is blank

![Opsgenie-error.png](/t5/image/serverpage/image-id/234478i6BCDC0C6F00240D8/image-size/large?v=v2&px=999 "Opsgenie-error.png")

Any idea on how to troubleshoot or fix this issue?


Answers:
author: Ivan Ferreira
body: I implemented this workaround.

* In Opsgenie, [add email-integration](https://support.atlassian.com/opsgenie/docs/integrate-your-email-with-opsgenie/).
* In Jira Software, create a new Automation rule
  * Trigger: Pull request created
  * Action: Send Email
  * To: opsgenie@email.address
  * Subject: Merge Request created: {{issue.key}} {{issue.summary}}
  * Content: {{pullRequest.url}}


Tags: cloud
Setting Priority Level for Integrations
Asked by Henry Painter:

I understand there are some limitations where some integrations are assigned a default (P3) priority if OpsGenie cannot determine the priority from the payload.

<https://support.atlassian.com/opsgenie/docs/what-is-the-priority-level-of-integration/>  

I have been relying upon this override, and attached screenshot of the API integration in question, and its settings.

![Screenshot 2023-01-13 at 09.11.15.png](/t5/image/serverpage/image-id/234341i59BC47216ED5FA43/image-size/large?v=v2&px=999 "Screenshot 2023-01-13 at 09.11.15.png")

Despite this the alerts are still being treated as P3. It appears this functionality is not working.

Am I doing something wrong?


Answers:
author: Nick H
body: Hi [@Henry Painter](/t5/user/viewprofilepage/user-id/5120658) ,

Engineering is aware of this issue currently. It's a minor Bug you can watch, follow and vote or here: <https://jira.atlassian.com/browse/OPSGENIE-1188>


author: Ajay _view26_
body: Hi [@Henry Painter](/t5/user/viewprofilepage/user-id/5120658)

Welcome to the Atlassian Community

The API does provide a setting to set the Priority in the body. Have you tried it out?

POST [https://api.opsgenie.com/v2/alerts](https://docs.opsgenie.com/docs/alert-api)

{  
"message": "Forge App Incident from Atlassian",  
"description": "Your app XYZ is now in an alert state",  
"responders": \[  
{  
"id": "4513b7ea-3b91-438f-b7e4-e3e54af9147c",  
"type": "team"  
}  
\],  
"tags": \[  
"Automation",  
"Critical"  
\],  
"details": {  
"key1": "value1",  
"key2": "value2"  
},  
"entity": "An example entity",  
**"priority": "P1"**  
}


Tags: cloud
Auto close Cloudflare healthcheck webhook alert
Asked by Simon Kulessa:

Hi,

I've been trying to set up the auto close feature for incoming webhook alerts (cloudflare healthcheck) for some days now.

Current situation: Incoming alerts are working and trigger an alert in opsgenie, which is fine. But when cloudflare sends the "Ok" (or fixed) message, the alert does not get closed. When we started implementing the alert webhook, we even got the "Ok" message as an alert, this was later fixed with a filter for creating alerts like this:

![Bildschirmfoto 2023-01-12 um 14.59.51.png](/t5/image/serverpage/image-id/234166i8568117FD82D608C/image-size/large?v=v2&px=999 "Bildschirmfoto 2023-01-12 um 14.59.51.png")

After reading through some posts like this one (<https://community.atlassian.com/t5/Opsgenie-questions/Auto-Close-Dynatrace-alert/qaq-p/1957126>) and the documentation, my approach was to change the alias of the alert. So I set up a regex to change the alias to the unique ID of the healthcheck.

![Bildschirmfoto 2023-01-12 um 15.00.08.png](/t5/image/serverpage/image-id/234165iB7AAA6583B2D2ED3/image-size/large?v=v2&px=999 "Bildschirmfoto 2023-01-12 um 15.00.08.png")

But this doesn't seem to close the alert when the issue is resolved in cloudflare. Can we check on Opsgenie side, if the incoming webhook gets the "Ok" message from cloudflare? In cloudflare everything is set up to send the corresponding healthy/unhealthy messages.

Thanks in advance,

Simon


Answers:
author: Nick H
body: Hi [@Simon Kulessa](/t5/user/viewprofilepage/user-id/5119822) ,

Important to note that our alert API uses a slightly different URL to close an alert vs. when creating an alert. You can review the format / parameters needed here: <https://docs.opsgenie.com/docs/alert-api#close-alert>

As you can see, an identifier is required in the URL (even if you have the action set to Match All Alerts, and the alias is matching). The alias can be used as the parameter - but again would be required to close an alert.

comments: author: Simon Kulessa
body: Hi Nick,

thanks for your quick reply.

So it seems, that cloudflare has no option to get the identifier of an alert that has been created. We are using the webhook for 32 different healtchecks.   

So it seems to me, that we are unable to use one webhook for every "healthy" status (so to close the alert), but we would need to create a unique webhook for every "alias"?

Best,  
Simon


Tags: cloud
alert is Firing in grafana but not received in opsgenie
Asked by Puspaketu Nayak:

Everything is perfectly configured in grafana like label , Data source ,contact point and Notification policies as well everthing and alert is firing in grafana but not receiving in opsgenie but Test alert is getting in opsgenie?can any one help here.


Answers:
author: Nick H
body: Hi [@Puspaketu Nayak](/t5/user/viewprofilepage/user-id/5119485) ,

My colleague published a Community Article that might help with identifying why an Opsgenie alert was not created. You can review that here:

[Integration not creating Opsgenie alert](https://community.atlassian.com/t5/Opsgenie-articles/Integration-not-creating-Opsgenie-alert/ba-p/2070678)

The best place to troubleshoot an issue like this is the [Logs tab](https://support.atlassian.com/opsgenie/docs/search-logs/). If Opsgenie is receiving requests from Grafana, they'd log even if there were errors. If no requests are being received, then it's most likely a minor misconfiguration on the Grafana side.


Tags: cloud
Is it possible to get an Asset name from JSM in the Extra Property of the OpsGenie automation rule?
Asked by Wong:

I have a JSM Cloud/OpsGenie Cloud integration set up. When a P1 ticket in JSM is created, I would like to create an alert in OpsGenie that would have an Extra Property called AssignedTeam. The Assigned Team is an Asset select field in JSM (customfield_1234). In the incoming Automation Rule, I have set the extra property for AssignedTeam = {{_payload.issue.fields.customfield_1234.value}} but nothing is showing up in the OpsGenie alert. Any suggestion?


Answers:
author: Nick H
body: Hi [@WB](/t5/user/viewprofilepage/user-id/3537536) ,

If the AssignedTeam field is being added by an automation rule, then I believe the webhook event to Opsgenie would be **jira:issue_updated** instead of jira:issue_created - since this rule is being run after the issue is created. By default, Opsgenie will create issues when they are created in JSM, and not when they are updated.

If that's the case then you'd want a create alert action to filter on this event, and probably along with the priority since the automation rule only runs when a P1 is created. That filter might look something like this then:

![p1jsm.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/234010i13D77521738FAF7D/image-size/large?v=v2&px=999 "p1jsm.jpg")

\^ Note this screenshot is of the [Advanced tab](https://support.atlassian.com/opsgenie/docs/use-advanced-integration-settings/) of the integration which is only available on the Standard and Enterprise (or JSM/O Premium and Enterprise) plans.

If you can create alerts following these steps, then you should be able to extract the AssignedTeam field. This Community Article should also help with extracting custom fields: [How to Extract Custom Fields and Data into an Alert](https://community.atlassian.com/t5/Opsgenie-articles/How-to-Extract-Custom-Fields-and-Data-into-an-Alert/ba-p/2133902)

You may also want to review the [Logs tab](https://support.atlassian.com/opsgenie/docs/search-logs/) to see if Opsgenie is in fact receiving the requests when the automation rule is run. It could provide a better idea of what filter/conditions could be needed in order to have these create alerts.


Tags: cloud
Incident associated alerts timeline
Asked by Mike Gorman:

I saw in a question from 2020 that there was a feature request put in to show the time an alert was created, rather than associated to an incident. Has that come to pass? I'd really prefer to be able to use that timeline for responders to gather an understanding of the sequence of events that may be manually added to the timeline.


Answers:
author: Shivam Naik
body: Hi [@Mike Gorman](/t5/user/viewprofilepage/user-id/1326033) ,

Happy to help!

The best way to follow the progress of those is to vote on them, and add yourself as a Watcher. They are also public facing, so you could comment there to see if Engineering has an update on the progress. Do you have the link by chance? I can check internally to see if there has been movement on this!

comments: author: Mike Gorman
body: Here is the referenced post:  
<https://community.atlassian.com/t5/Opsgenie-questions/Inaccurate-incident-timeline-and-analysis-for-manually-created/qaq-p/1399246>


author: Shivam Naik
body: Hi [@Mike Gorman](/t5/user/viewprofilepage/user-id/1326033) ,

It does not appear that project has been completed yet, but I've mirrored the internal ticket to a Public Facing version here <https://jira.atlassian.com/browse/OPSGENIE-1198> so that you can follow the progress going forward. There is no ETA at the moment, but when an update is available it will come through to Watchers and Voters on that ticket.

Please let me know if you have any follow up questions.


Tags: cloud
Can't Login sts.windows.net Error
Asked by Melih ?elik:

Hi,

We're facing a problem while logging to OpsGenie. After typing e-mail opsgenie redirects to sts.windows.net and it can't be found.

Can anyone help me please ?

Thanks in advance.


Answers:
author: Nick H
body: Hi [@Melih ?elik](/t5/user/viewprofilepage/user-id/5116450) ,

You may want to [open a ticket with Opsgenie support](https://support.atlassian.com/opsgenie/) for assistance on this. We'd be able to review your login email / credentials, and probably provide more assistance there vs. revealing any sensitive or personal information here in Community.


Tags: cloud
Add Stakeholders for OpsGenie
Asked by bhamdan:

We have been using both OpsGenie and JIRA separately. A couple years ago OpsGenie migrated our OpsGenie users to Atlassian Admin. Recently we've moved from local JIRA to cloud JIRA, so have added JIRA to Atlassian Admin and merged our accounts.

I'm trying to get Stakeholders working for OpsGenie but can't figure out how. Seems like all these upgrades Atlassian has push us to have broken this functionality. Is it possible to go back to local OpsGenie users so I can get this working?


Answers:
author: bhamdan
body: We are currently OpsGenie Enterprise Subscription.

comments: author: Howard Nedd
body: [@bhamdan](/t5/user/viewprofilepage/user-id/4171005) Hi,

You simply dont have the Stakeholder role in Opsgenie JSM.

You will need Opsgenie Standalone for the Stakeholder functionality.

I believe this might change in the future as they are merging step by step (according to my communication with atlassian).

You can add stakeholders to services though via the services option:

![Screenshot 2023-01-09 at 14.13.13.png](https://community.atlassian.com/t5/image/serverpage/image-id/233509i6800D8B21A154431/image-size/large?v=v2&px=999 "Screenshot 2023-01-09 at 14.13.13.png")

Hope that helps.

Regards,  
Howard


author: bhamdan
body: Thanks, Howard.

What's crazy is that we were using OpsGenie before Atlassian purchase. At some point they converted us to Atlassian Admin. I don't remember being given the choice of standalone vs merged. I considered moving to Pagerduty when working on Incident response, but our Cybersecurity SOAR tool didn't have bidirectional integration to either one, so we built webhook integration into OpsGenie. I'd hate to walk away from that investment.

We were already using JIRA in our dev shop, and we are considering JIRA ITSM this year. That kept me in the OpsGenie camp.


author: bhamdan
body: Howard,

I was able to get to the page you describe above, but of course, I have to have the stakeholders defined before I can select them in this service page. That currently cannot be done.


author: Howard Nedd
body: Maybe contact Opsgenie Support. They are always willing to help sort out the correct solution for your case. There are several ways to solve it and I dont believe you will have to walk away.

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

Regards  
Howard


Tags: cloud
Edit an On Call Schedule retrospectively
Asked by Howard Nedd:

I have a on call schedule of the last month but it does not reflect what actually happend last month so we want to adjust it as users are being compensated for the hours worked.

Is the only way to edit this by adding an override?

Regards  
Howard


Answers:
author: Howard Nedd
body: I just figured out that this is not possible you will have to delete the entire schedule and set it up again with the startdate in the past. I believe that this is the only way for us to fix it.


Tags: cloud

on-call

schedule
Opsgenie Alias field for Mail
Asked by Tobias Van der Pulst:

We are receiving mails to opsgenie from one of our systems.

And don't see any way to achieve deduplication using the alias field.  
We've tried adding it to the extra_properties, but it keeps getting generated.

Is there any other way to modify this parameter?

(we are on the essentials plan)

Thanks for any insights you may have.

Tobias


Answers:
author: Nick H
body: Hi [@Tobias Van der Pulst](/t5/user/viewprofilepage/user-id/5115186) ,

Unfortunately I don't think this will be possible on the Essentials plan. The [Advanced tab](https://support.atlassian.com/opsgenie/docs/use-advanced-integration-settings/) of an integration where you can edit what data / field(s) parse in the alias is only available on the Standard and Enterprise plans (or the JSM/O Premium and Enterprise plans).

By default, the Email integration on the Essentials plan will parse the alert's ID in the alias.

comments: author: Tobias Van der Pulst
body: Thnx Nick for the quick feedback!


author: Tobias Van der Pulst
body: ![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/233326i6D31E37A72F2C803/image-size/large?v=v2&px=999 "Capture.JPG")

comments: author: Nick H
body: Although you are trying to create an alias field - that's technically under the extra properties and not considered the alias field like here within the Advanced tab:

![alias1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/233327iEEBCB9663F1070A4/image-size/large?v=v2&px=999 "alias1.jpg")![alias2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/233328i51E8CABD51B7D554/image-size/large?v=v2&px=999 "alias2.jpg")


Tags: cloud
Ncentral user acknowledgement in OpsGenie
Asked by Eric Slocum:

Since the OEC is tied to a user in windows when an alert is ack'd it comes through as the user you have setup in the config. I am not a developer but I would like to have the python script send the actual user to the ncentral server in a note. All my on-call users have to login with their M365 account so when they ack in Opsgenie is reports as them. It appears the note portion does not really work either, and if it came through there that wourl work as well. I checked with support but they said that is up to us as an end user.

Has anyone done this or found a work around for this?


Answers:
author: Eric Slocum
body: Wow I just read that, and it may be confusing. I am looking to pass the opsgenie (logged in user) ack to ncentral in a note so it records the actual user vs the generic OEC user. Support says the python script needs to be altered and I don't know how to do this.


Tags: cloud
Phone numbers & mail notifications
Asked by Tomasz Sarzy?ski:

Dear All,

I have two silly questions that I can't seem to get the answer for.

1. We've been using Opsgenie for around a year now and it's been working fine. Phone notifications we receive used to be sent from the US phone numbers (+1 country code), all our engineers were aware of that, they knew to accept the call from such a number. Lately, however, it changed. We get calls from the hidden numbers, or from other country codes (Belgium, Hungary I think, etc.). Is there any way I could change it? I would like to have if not a single phone number which we could memorize, then at least a limited pool so that our on call engineers know that they're supposed to answer specific calls.

2. We are using the schedule \& quiet hours so that the alerts don't go through within the working hours. However, we would like to try to have the mail notifications active in that time. Is there a way to suppress the voice / SMS alerts in specific timeframe while still having the email / app notifications active? I failed to figure it out in the settings...

Thank you in advance.

Kind regards,  
Tomasz


Answers:
author: Jack Brickey
body: Hi [@Tomasz Sarzy?ski](/t5/user/viewprofilepage/user-id/4766406) ,

it is interesting that the number changed. What I previously set this up for a client. I had the client's Agents add the number to their smartphone phone book with an appropriate name. I have not heard of the number changing and feel it would be interesting to reach out to Atlassian customer support to get an answer on that. In any case, you might find the following article on configuring, incoming, call, routing useful - [integrate-incoming-call-routing](https://support.atlassian.com/opsgenie/docs/integrate-incoming-call-routing/) . It provides options for controlling your incoming phone number.

comments: author: Tomasz Sarzy?ski
body: Hello Jack,

Thank you for your advice.

![1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/232677i27BA5A47F2B9822D/image-size/large?v=v2&px=999 "1.jpg")  

I tried to follow the steps from the link, but I don't see the "Incoming Call" button mentioned there. Nor can I see it when I open specific integrations' settings.

<br />

Kind regards,  
Tomasz


Tags: cloud
Branch-Override does not execute the correct tasks
Asked by Jochen Gerlach:

Hi all,

I created a bamboo.yaml in the bamboo-specs folder in a repo. This was export from the bamboo-build-plan which shall build the repo.

Now I adapted the branch-plan with branch-overrides. The Bamboo starts the branch-plan after I pushed a change to BitBucket.

But Bamboo does not execute the branch-overrides. The jobs from the master-branch are executed every time.

Has anyone an idea, what happens?

Thanks in advance!

Jochen


Answers:
author: Eduardo Alvarenga
body: Hello [@Jochen Gerlach](/t5/user/viewprofilepage/user-id/4322658)

You need to use Enhanced Plan Branches in Bamboo to have selective Branch pipelines. More information here:

* [Bamboo Enhanced Plan Branch configuration](https://confluence.atlassian.com/bamboo/enhanced-plan-branch-configuration-1018767259.html)

Eduardo Alvarenga  
Atlassian Support APAC
Running python3 and pip commands in Bamboo using Remote Agent
Asked by Chong Jing Hong:

I have a remote agent dedicated to my Bamboo Build Plan. I want to run a python script, which requires pip installation of libraries before the script can execute. I've already added the pip and python executables into the remote agent's capabilities, as such:

```
system.builder.python.Python38=C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python38\\python.exe

system.builder.py.pip=C:\\Users\\...\\AppData\\Local\\Programs\\Python\\Python38\\Lib\\site-packages\\pip
```

```
Broken Links:

  tasks:

  - checkout:

      force-clean-build: 'false'

      description: Checkout Default Repository

  - script:

      interpreter: BINSH_OR_CMDEXE

      scripts:

        - pip install BeautifulSoup4

        - pip install lxml

        - pip install requests

        - python3 broken_links.py

  requirements:

    - Python38

    - pip
```

But, when I run the pipeline, I get the error that pip and python3 are not recognised commands. Please help


Answers:
author: Eduardo Alvarenga
body: Hello [@Chong Jing Hong](/t5/user/viewprofilepage/user-id/4789367)

Your scripts are probably lacking %PATH% declaration. You can either use the full path for each pip and python3 binaries or use the following variable substitution:

```
- %bamboo_capability_system_builder_py_pip% install BeautifulSoup4
- %bamboo_capability_system_builder_py_pip% install lxml
- %bamboo_capability_system_builder_py_pip% install requests
- %bamboo_capability_system_builder_python_Python38% broken_links.py
```

More info:

* [Bamboo variables - System variables](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html#Bamboovariables-Systemvariables)

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Chong Jing Hong
body: Thanks [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410) !


Tags: pip

python
What are the variables I send through webhooks when using the "agent online" system notification
Asked by Jonathan Ghellere:

Hello,

There are "System Notifications" for the events "Agent Online" and "Agent Offline". We can choose Webhooks as "Recipient Type" and then select a Webhook Template.

I'm not finding anywhere which variables I can send in the body as a POST request when using a Webhook Template. For instance I'm interested in the agent name. I'm mean, if the agent is online, then I would like to know at least it's name. : )

Has anyone been able to achieve this somehow?

ps. I was able to set a custom capability on the agent:

"my.name" = "${HOSTNAME}"

Then I've created a template like:

{  
"uuid" : "${bamboo.webhook.uuid}",  
"hostname" : "${bamboo.capability.my.name}"  
}

I get a "variable not found" in the logs.


Answers:
author: Jonathan Ghellere
body: Looks like the webhook does not get the capabilities from the agent but only the local ones(from Bamboo Host/Server/DC). For instance, let's say I have a server capability called:

TEST=ABC

But this capability does not exist in the agent. If I try to use it in the webhook:

${system.capability.TEST}

Then I will get the value "ABC". If the variable does not exist in the server but exists in the agent I get a "variable not found".

I'm not sure if this is a BUG or it is how it's supposed to work. I mean, we have an event called "Agent Online" but when I try to use the Webhook as a recipient type, it does not receive any data from the agent.

If so, it would be good to have the recipient type Webhook removed from the list of possible options. : (