youngmon/atlassian-qna huggingface dataset:
New Jira Service Management Integration API support
Asked by owen.klan:

Hello,

At my workplace, we've been using the legacy Jira Service desk integrations with OpsGenie. We were very excited to see the improvements in the integration capabilities but ultimately, we need to be able to create these integrations in-bulk, via REST APIs.  

I attempted to use the Integrations API, as [documented here,](https://docs.opsgenie.com/docs/integration-api) but when trying to get specific integration details for a new integration, the API responds with the following:  
{  
"message": "Integration type \[jira-service-management-cloud\] is not supported.",  
"took": 0.097,  
"requestId": "c1be8b53-a50c-4c28-abff-1647c1cb3080"  
}  
To clarify, if using the Integration ID from any other type of integration, things work as expected.  

So the question is:  
**When can we expect full REST API support for Integrations of type jira-service-management-cloud? Or, is there another way to achieve this with the new integrations via automation, rather than using the web interface?**


Answers:
author: Darryl Lee
body: Hi [@owen.klan](/t5/user/viewprofilepage/user-id/4427469) ,

This is Darryl. I am here to help. ?

Understand that you would like to create the new Jira Service Management cloud integration in batch via Opsgenie API.

Unfortunately, this is not feasible in the current design as there is no endpoint handling this kind of request.

Please vote and set yourself as a Watcher on the feature request ticket, [OPSGENIE-167](https://jira.atlassian.com/browse/OPSGENIE-167), to receive the latest updates.

Thank you very much for reaching out and sharing your feedback with us to improve Opsgenie.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian

comments: author: owen.klan
body: Thank you for the response, Darryl. Noted and voted.


Tags: cloud
Is there a way to create Bi-weekly on call rotations?
Asked by Howard Nedd:

I have setup a few on call rotations but now I am looking to create a bi-weekly schedule but the rotation options seem limited to either, dsily, weekly and custom. But it does not allow me to skip a week. Is this possible?

Regards

Howard


Answers:
author: Howard Nedd
body: I found the solution. It's the no-one option.


author: Nick H
body: Hi [@Howard Nedd](/t5/user/viewprofilepage/user-id/4566707) ,

If you were unaware, you can add No-one (an actual option) into the rotation's participant list to replicate this every-other type rotation:

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

Hope this helps!

comments: author: Howard Nedd
body: Answered below..


author: Howard Nedd
body: I think I have solved it by using a weekly schedule, restricting it to monday to Thursday and then adding no-one (twice) between the users:  

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


Tags: cloud
In Ops Genie alert query underscore character fails match
Asked by Jeffery Caldwell:

I have alerts with the "_" character in the description. But these are not matching when I query something of this form:

description:\*AAAA_BBBB_FAILURE\*

If I use any section it will match but the entire pattern fails to match.


Answers:
author: Nick H
body: Hi [@Jeffery Caldwell](/t5/user/viewprofilepage/user-id/1432167) ,

"*[Wildcards](https://support.atlassian.com/opsgenie/docs/search-queries-for-alerts/#Using-asterisk-----as-a-wildcard) can only be used after characters and will only match from the start of character sequences. Character sequences need to be separated by a space for the wildcard to try and match to each sequence of characters*."

So if the string in your description is actually something like "XXXX-AAAA_BBBB_FAILURE" - Opsgenie is not gonna be able to query using that since the string starts with something else.

We have an open feature request for this additional functionality you can follow here: <https://jira.atlassian.com/browse/OPSGENIE-217>

comments: author: Dominic D Wasserzug
body: I don't believe that bug fully matches the issue being described. I have encountered the same issue.

If you search for any text before an underscored you will find your alert.

![beforeunderscore.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/202793i6CCD8962F1ADB20C/image-size/large?v=v2&px=999 "beforeunderscore.PNG")

If you search for any text after an underscore you will not find your alert.![afterunderscore.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/202794i1BD134375A799477/image-size/large?v=v2&px=999 "afterunderscore.PNG")If you search for any text before and after the underscore, but include the literal text surrounding the underscore, you will find your alert.![workaround.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/202795i5451F6FF75ED9821/image-size/large?v=v2&px=999 "workaround.PNG")

Based on this behavior I can surmise that whatever is processing the string will only process the literal underscore character if it is wrapped by other literal characters. This means that something is processing the underscore symbolically. So I believe this should be a new bug to allow the use of the literal underscore in the search string.
Log Download Links?
Asked by Tom Russell:

When using the Log API to download log files, a link is generated. We need to have that link defined in our corporate proxy allowances. The links we're getting now start with

<https://rps-bucket-prod-west2.s3.us-west-2.amazonaws.com>

Will this always be the case? Will there ever be other regions used?


Answers:
author: Darryl Lee
body: Hi [@Tom Russell](/t5/user/viewprofilepage/user-id/4107159) ,

This is Darryl. I am here to help.

Understand that you would like to know if the URL in the response of Log API will be consistently the same for your corporate proxy to whitelist.

In your case, it looks like your Opsgenie is hosting on the US data region, so the relevant URL of the Log API should be the same as you attached.

Unless there is any incident that happens on the AWS side leading to the URL changed by the service failover or high availability.

I am wondering if it's possible to incorporate the asterisk symbol for a greedy match on the domain name?

For example:

```
*.us-west-2.amazonaws.com
```

Hope this helps.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian

comments: author: Tom Russell
body: Thanks, [@Darryl Lee](/t5/user/viewprofilepage/user-id/3680306) - I'll check with our InfoSec group about a wildcard, but I'm worried that the domain named I posted in the question is even too broad for their liking.


author: Darryl Lee
body: Thanks [@Tom Russell](/t5/user/viewprofilepage/user-id/4107159) !

For more specific details, please reach out to [Opsgenie Support](https://support.atlassian.com/opsgenie/) and my colleague will help you from there on this subject.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian


Tags: cloud

log
ApplicationInsights: Include query results and URL
Asked by Dariusz Wozniak:

I have Alerts in Azure Application Insights that are fired if exception count \> 0 and then the message is sent to OpsGenie via webhook. The integration works great, but I need to include more information about exceptions (message and type) from AppInsights that are related to the query result of alert. I'd also like to include URL to query results as well.

I tried to use the following \`Log search\` with the query, but I was not able to "catch" information about query results in OpsGenie.

```
exceptions
| where details[0].severityLevel == "Error"
| order by timestamp
```

I also tried to use \`Exception\` metrics as a signal, but couldn't get that information as well.

The payload I have (GUIDs are obfuscated to \`\[GUID\]\`):

```
{
"alertLogOwner": "Azure",
"actionOwner": "Azure",
"alertId": "[GUID]",
"_incomingData": {
"_parsedData": {
"-teams": [
"[GUID]"
],
"-actions": [],
"-tags": [],
"description": "[OpsGenie] Exceptions on Prod count larger than 0",
"alias": "[/subscriptions/[GUID]/providers/Microsoft.AlertsManagement/alerts/[GUID]]",
"_details": {},
"source": "Azure",
"message": "[Azure] GreaterThan 0 LogQueryCriteria in the last PT5M mins was activated\nDescription: [OpsGenie] Exceptions on Prod count large",
"priority": "P3",
"entity": ""
},
"integrationType": "Azure",
"integrationName": "Azure Digital (Prod alerts)",
"integrationId": "[GUID]"
},
"_actionSource": {
"sourceSubName": "Create Alert",
"sourceType": "Azure",
"domain": "integration",
"incomingDataId": "[GUID]",
"sourceName": "Azure Digital (Prod alerts)"
},
"alertLogType": "system"
}
```

I don't see any way to get query results / URL to the alert from the above. So, the question is: How can I get query results and URL to the alert of Azure Application Insights Alert in the OpsGenie.


Answers:
author: Nick H
body: Hi [@Dariusz Wozniak](/t5/user/viewprofilepage/user-id/2658992) ,

If the exceptions (message and type), and the URL from AppInsights are included in the payload, you can use [string processing](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/) or [regex](https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/) to extract them into the alert. But again, the information needs to be included in the payload. If it's not being sent from AppInsights to Opsgenie, then it wouldn't be possible.

If this data is being parsed in the payload, but you're having trouble extracting the data into the alert / finding it in the Logs, feel free to open a support ticket with our team here: <https://support.atlassian.com/opsgenie/>


Tags: azure

insight
Disable Connection with Jira
Asked by Nestor Rodriguez Perez:

Hi.

Hi.  
We don't know why Opsgenie integration was enabled.  
The people working in our instance don't like the notifications from Opsgenie and I have got the order of disabling the integration of Opsgenie into our instance,

The problem is that I can't find an option to do so.

Could you tell me how?


Answers:
author: Nick H
body: Hi [@Nestor Rodriguez Perez](/t5/user/viewprofilepage/user-id/4883691) ,

If you are an admin of the team that has this integration configured, you should be able to disable the integration under the team's Integrations tab here:

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

comments: author: Nestor Rodriguez Perez
body: Dear [@Nick H](/t5/user/viewprofilepage/user-id/2540930) .

I have no integrations in this tab but the default one:

![integrations.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/196988iE311E9FEFA594BAF/image-size/large?v=v2&px=999 "integrations.PNG")

However, if I go to Connected Apps -\> Atlassian Products -\> Jira Software Cloud I still see our site there:

![Jira Software Cloud.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/196989iA1C4AFCD8DF6147B/image-size/large?v=v2&px=999 "Jira Software Cloud.PNG")

Same happens if I go to Jira Service Management.

Please, help me.

BR


author: Nick H
body: Well there really isn't a way to disable that connection. Your Opsgenie was given through your JSM subscription, and the connection you shared above is through your site.

If your users do not want notifications or anything to do with Opsgenie, you can simply remove them from whatever groups in your Atlassian site have access to Opsgenie, or remove them from the Users tab in Opsgenie.


author: Nestor Rodriguez Perez
body: OMG, I can't believe that all this time the solution was searching for a user group giving access to Opsgenie.

I have search this answer everywhere and didn't find it.

Thank you so much


author: Luis Plaza
body: Hi [@Nestor](/t5/user/viewprofilepage/user-id/1191397) ,

I am the previous admin ... ;)

***Opsgenie is included in all cloud plans of Jira Service Management** delivering complete ITSM with end-to-end incident managemen* t. <https://www.atlassian.com/software/opsgenie> so I do not think the previous admin did that enablement of feature without permission. It is out of the box in Jira Service Management.

Anyway, you may open a support ticket and Atlassian support will separate Opsgenie as another product withits own billing, so the customer will have to pay for that sucription if they want to use in the future Opsgenie.

Kind regards
label visibleTo is not working on prometheusRule
Asked by daniel.rosa:

Hi,  
I'm trying to enable visibility for the Opsgenie alerts to **everyone** through prometheusRule with no success. The alerts are sent normally, responders are receiving, but if someone for other team try to visualize the alert, they got a 403 error :   

*Oops!*  
*It looks like you don't have permission to see this page.* I tried to set**visibleTo: everyone** on labels, but it didn't work. Does anyone knows how to define visibleTo configuration on prometheus rules to allow everyone visualize the alert on opsgenie ? I'm using alertmanager integration with Opsgenie.  
Thanks in advance,  

<br />

labels:  
env: prd  
priority: p2  
responders: development  
visibleTo: everyone


Answers:
author: Nick H
body: Hi [@daniel.rosa](/t5/user/viewprofilepage/user-id/4648787) ,

That visibleTo: everyone label or field seems more like a Prometheus thing.

Visibility to alerts in Opsgenie would be dependent on your user's roles, and the permissions they have to the alerts.

By default account Admins and Owners have access to all alerts. Account Users will only have access to the alerts they are recipients of directly, or if the alerts are sent a team the Users are a member of.

You could consider creating a [custom role](https://support.atlassian.com/opsgenie/docs/learn-user-roles-and-permissions/#Custom-User-Roles) that grants permission to all alerts, but the issue here is it applies to ALL alerts - meaning they'd be able to take action on any/all alerts. So it might not meet the use case.
How to disable all abilities except ascribe notes to alert in Slack
Asked by Zaza Okujava:

Hi. I have Opgenie integration with Slack and I need to give the ability to add comments only to the alert but all other actions like Acknowledge, Unacknowledged, Close, and est... needed to be disabled.  
I already tried working with integration settings in Opsgenie but without results.

![Screenshot 2022-05-06 164820.jpg](/t5/image/serverpage/image-id/196615i56B8231762C29999/image-size/large?v=v2&px=999 "Screenshot 2022-05-06 164820.jpg")

With regards  
Zaza okujava


Answers:
author: Darryl Lee
body: Hi [@Zaza Okujava](/t5/user/viewprofilepage/user-id/4918353) ,

This is Darryl. I am here to help. ?

Do you mean you would like to restrict the available actions from Slack side?

If yes, unfortunately, there is no way to achieve that in the current design.

The "Alert Action" section in the screenshot you attached is to define what are++the actions on the Opsgenie Alerts that performed on the Opsgenie side are qualified to be pushed to the Slack channel++, not the other way around.

To have the capability to define the allowed executable actions on the Slack side, I have created a feature request, [OPSGENIE-495](https://jira.atlassian.com/browse/OPSGENIE-495), please vote it and set yourself as a Watcher to receive the latest update.

Hope this helps.

Should you have any further inquiry or technical assistance required, please feel free to reach out to [Opsgenie Support](https://support.atlassian.com/opsgenie/) and my colleague will help you from there.

Kind regards,   
Darryl Lee  
Support Engineer, Atlassian
API integration problem
Asked by Bart Scheltinga:

Hi all, I am trying to create an alert via the API. But I run into some problem using the POST. Before this, using GET with list alerts is working fine.

As you can see in the screenshot I am using:

Content-Type: application/json

Response: Content type 'application/octet-stream;charset=UTF-8' not supported

Any idea?

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


Answers:
author: Nick H
body: Hi [@Bart Scheltinga](/t5/user/viewprofilepage/user-id/4433099) ,

It could be the API key being used in your request. The Create Alert API needs to use an API key from an [API integration](https://support.atlassian.com/opsgenie/docs/create-a-default-api-integration/).

If you are using an API key from the [API key management](https://support.atlassian.com/opsgenie/docs/api-key-management/#API-Key-Management-Tab) tab, POST / creating alerts through one of these is not supported.

comments: author: Bart Scheltinga
body: Hi Nick! Thanks for the fast response!

I used the same with GET method and it worked there. Don't think the key is the problem. I used API Integration within team.

Bart


author: Nick H
body: Ok, thanks for checking. That error is pretty specific, and mentioning the wrong Content Type might be being used (which I understand contradicts your screenshot):

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

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


author: Bart Scheltinga
body: yeah strange, right? Maybe I should use postman for testing instead, just to rule that out.


author: Bart Scheltinga
body: I installed Postman (just like you). Now the request works so the problem seems to be on my side!

Thanks Nick!
Bamboo Email Configuration Failed
Asked by John Wakley:

We switched our SMTP vendor away from gmail. I setup the email configuration but when I send a test email, I receive the following error:

The mail settings you entered were not valid. Error thrown was: javax.mail.MessagingException: Could not convert socket to TLS; nested exception is: javax.net.ssl.SSLException: Received fatal alert: protocol_version

Bamboo Version: 6.9.2 (build: 60911 - 7/4/19)

Java Version: 1.8.0_111

Using SMTP (not JNDI)

Port: 587

Use TLS is ticked

Username and Password are correct

I have scoured both the configs in \<BambooInstall\>/bin and Windows Registry, there are no options specifying using TLS v1.0 or v1.1

My searches point to TLS version...

Any help would be greatly appreciated.


Answers:
author: Eduardo Alvarenga
body: Hello [@John Wakley](/t5/user/viewprofilepage/user-id/2863886)

Please check the following Bug and apply the suggested workaround:

* [Bamboo without TLS 1.2 select option for SMTP mail server configuration](https://jira.atlassian.com/browse/BAM-20910)

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: John Wakley
body: Thank you Eduardo, I did find this bug, I didn't think it was relevant due to our version being 6.9, but I applied the work around and it is working now.

Thanks again, John
How to fetch all the fields available in Bamboo using rest api
Asked by Sujitha Selvam:

Hi,

We have a requirement to migrate Bamboo to Azure DevOps. For that we need the list of Fields available in Bamboo. Is there a rest api to achieve it. To be more exact, is there a way to fetch the plan configuration details using api.


Answers:
author: Steffen Opel _Utoolity_
body: The [Bamboo REST APIs](https://developer.atlassian.com/server/bamboo/rest-apis/) are neither well documented nor the easiest to work with (primarily XML etc.), but conceptually you can fetch the plan configuration via the [/plan](https://docs.atlassian.com/atlassian-bamboo/REST/8.0.2/#d2e4531) resource and its various sub-resources for an individual plan, e.g. [/plan/{projectKey}-{buildKey}](https://docs.atlassian.com/atlassian-bamboo/REST/8.0.2/#d2e4543) yields:

```
<plan expand="actions,stages,branches,variableContext" key="AAWS-APPS" name="Automation with AWS - Build add-ons" shortName="Build apps" shortKey="APPS" type="chain" enabled="true">
  <projectKey>AAWS</projectKey>
  <projectName>Automation with AWS</projectName>
  <project key="AAWS" name="Automation with AWS" description="">
    <link href="https://www.example.com/bamboo/rest/api/latest/project/AAWS" rel="self"/>
  </project>
  <buildName>Build apps</buildName>
  <planKey>
    <key>AAWS-APPS</key>
  </planKey>
  <link href="https://www.example.com/bamboo/rest/api/latest/plan/AAWS-APPS" rel="self"/>
  <isFavourite>true</isFavourite>
  <isActive>false</isActive>
  <isBuilding>false</isBuilding>
  <averageBuildTimeInSeconds>256.0</averageBuildTimeInSeconds>
  <actions start-index="0" max-result="7" size="7"/>
  <stages start-index="0" max-result="2" size="2"/>
  <branches start-index="0" max-result="12" size="12"/>
  <variableContext size="8" max-results="8"/>
</plan>
```
[BambooAgentHttpRequestUtils] Cannot process message: invalid authentication token
Asked by Eric Hong:

I'm testing with a trial version of Bamboo and it was working fine when one day suddenly the agent failed to connect and went down with this error on the server log:

<br />

-------------------------

2021-09-27 10:36:31,172 WARN \[http-nio-8085-exec-3\] \[BambooAgentHttpRequestUtils\]**Cannot process message: invalid authentication token \[ba503f98c080c2f7e5d99118d72c0fec53e60e6c\]: Artifact \[node_modules\] for CMAPP-ECM-JOB1-30**

**---------------------------**

Also, on the Bamboo agent log:

----------------------------------  
INFO \| jvm 1 \| 2021/09/27 10:36:29 \| 2021-09-27 10:36:29,833 INFO \[0-BAM::lc02d9378md6r.lan::Agent:pool-3-thread-1\] \[DefaultBuildAgent\] Changing context: null -\> CMAPP-ECM-JOB1-30 on lc02d9378md6r.lan/7b97e1bb  
INFO \| jvm 1 \| 2021/09/27 10:36:29 \| 2021-09-27 10:36:29,870 INFO \[0-BAM::lc02d9378md6r.lan::Agent:pool-3-thread-1\] \[BuildAgentControllerImpl\] Found artifact that needs upload retry: node_modules  
INFO \| jvm 1 \| 2021/09/27 10:36:29 \| 2021-09-27 10:36:29,878 INFO \[0-BAM::lc02d9378md6r.lan::Agent:pool-3-thread-1\] \[AbstractArtifactManager\] Republishing \[node_modules\] for CMAPP-ECM-JOB1-30  
INFO \| jvm 1 \| 2021/09/27 10:36:29 \| 2021-09-27 10:36:29,914 INFO \[0-BAM::lc02d9378md6r.lan::Agent:pool-3-thread-1\] \[AbstractArtifactManager\] Trying to republish the artifact with handler: com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler  
**INFO \| jvm 1 \| 2021/09/27 10:36:31 \| 2021-09-27 10:36:31,742 WARN \[0-BAM::lc02d9378md6r.lan::Agent:pool-3-thread-1\] \[ArtifactStreams\] Error during artifact transfer, total bytes written: 10199188, total requested: 10225544, latest request: 63220**   
**INFO \| jvm 1 \| 2021/09/27 10:36:31 \| java.net.SocketException: Broken pipe (Write failed)**   
**INFO \| jvm 1 \| 2021/09/27 10:36:31 \| at java.net.SocketOutputStream.socketWrite0(Native Method)**

----------------------------

I re-instal the bamboo and bamboo agent with no avail.   

Not sure how to resolve this problem.


Answers:
author: Eric Hong
body: OK,

I figured it out. I was running the local agent manually without creating a new local agent in the server. After I used the server Admin =\> Agent =\> "Add local agent", everything works fine.