youngmon/atlassian-qna huggingface dataset:
Data dump of all history
Asked by Ben Krichko:

Is there a way a to pull a full export or data dump of all the History under a JPD Idea? This would make finding timestamp changes MUCH more efficient. Maybe an export button?

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


Answers:
author: Mohamed Benziane
body: Hi,

Give a try to the API, i know it for Jira Software but i think it should be possible to get the ideas and the history using the param"?expand=changelog"

<https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get>

comments: author: Ben Krichko
body: Thanks [@Mohamed Benziane](/t5/user/viewprofilepage/user-id/4413725) !

I'm fairly new to API calls in Atlassian. I have created a separate API token and am using Postman to make the calls, but am getting stuck on a 401 error. Is this something we can pair on and you guide me?


author: Mohamed Benziane
body: [@Ben Krichko](/t5/user/viewprofilepage/user-id/3501700)

Did you use your mail address in the username field on postman ?


author: Ben Krichko
body: [@Mohamed Benziane](/t5/user/viewprofilepage/user-id/1531125)

There are several auth options within Postman. I started with Basic Auth. I have put my email address in the Username field, but I think my problem is the password field. Would that be the full API token generated from Atlassian or something else?

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


author: Mohamed Benziane
body: Yes you nned to pu the full API token in the password field


author: Ben Krichko
body: [@Mohamed Benziane](/t5/user/viewprofilepage/user-id/1531125) You are awesome!! I'm now pulling a 200 response code. Last piece, For the param"?expand=changelog", how should that be entered?

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


author: Mohamed Benziane
body: [@Ben Krichko](/t5/user/viewprofilepage/user-id/3501700)

Just put the param at the end of the URL like this

```
myAtlassianSite/rest/api/3/issue/{issueIdOrKey}?expand=changelog
```


author: Rohan Swami
body: Hi [@Ben Krichko](/t5/user/viewprofilepage/user-id/3501700) this thread may help: <https://community.atlassian.com/t5/Jira-Software-questions/How-to-export-history-in-jira-issues/qaq-p/2124180>

You can try the API as [@Mohamed Benziane](/t5/user/viewprofilepage/user-id/1531125) suggested or 3rd party apps.
is there a way to group by one or another field?
Asked by Lexi Sprague:

I want to see all work for a squad whether they are supporting or leading, can I group by those two fields together?


Answers:
author: Nick H
body: Hi [@Lexi Sprague](/t5/user/viewprofilepage/user-id/5226250) ,

I suppose it would depend, but I think it's important to note [Grouping ideas](https://support.atlassian.com/jira-product-discovery/docs/use-filters-sorting-and-autosave/#:~:text=Group%20by%20%2D%20This%20option%20allows%20you%20to%20group%20ideas%20by%20fields%20within%20the%20list%20view.%20It%E2%80%99s%20useful%20to%20organize%20and%20declutter%20the%20view.%20You%20can%20also%3A) can only have one field selected at this time. If more than one field could be selected, the view could then have discrepancies and be difficult to read - which I believe is the logic behind this.

If the field you group-by is a multi-select field, and an idea has multiple values selected, then the idea would appear in different swimlanes like so:

![swimlane1.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/333029i8CA897DD1A10B49A/image-size/large?v=v2&px=999 "swimlane1.jpeg")

Hope that helps!
"When am I oncall" is empty but Team schedule shows I'm oncall
Asked by David Hwang:

I want to export when I'm oncall to my calendar.

I found this piece of documentation for this: <https://support.atlassian.com/opsgenie/docs/view-your-on-call-schedule/>.

When I navigate to the "When am I oncall Page" in the Opsgenie UI, the UI shows that I don't have any upcoming oncall scheduled. However, when I navigate to my Team's oncall schedule, it shows my expected upcoming oncalls.

Why might this be?

Just basic sanity checking thing: I made sure that the time windows I was looking at were the same.


Answers:
author: John M
body: Hi [@David Hwang](/t5/user/viewprofilepage/user-id/5262900) ,

One thing I would verify is that you are looking at the same user. In other words, be sure the user you are looking at on the team schedule is using the same email as the one you are logged in with. Team members sometimes accidentally create 2 users with the same name and different user names. If that is not the issue, I would recommend opening a support ticket so we can take a look at your account:  

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


Tags: cloud
Quick filter for contributers to filter a view
Asked by Aaron Lee:

Is there a way to set up quick filters in a JPD view that a Contributor (or anyone) can use? From what I can see, the filters are only visible to the admins and once they're set, it's a static view for everyone else.


Answers:
author: Tanguy Crusson
body: Hi, this feedback came up frequently in the past few weeks. We're currently working on adding the filter and sort menus to all views so that contributors can use them.

It's not going to let them view or change existing filters, but they'll be able to filter down further the list of ideas in that view, without saving that. (hope that makes sense)

comments: author: lbrewer
body: The restrictions for Contributors is too limited. They need to be able to edit submitted tickets to add content or comments. Also, there needs to be a way to prioritize tickets both as a joint effort from internal teams who prioritized the feature requests based on customer demand and individual customer submissions to be able to communicate the overall prioritization for customer individual roadmap items.


author: Tony Davis
body: Is there any update on this? Is there an issue open on a tracker that we can follow?
api integration with apache Airflow
Asked by Amratesh:

how can I use API integration in Opsgenie with Apache Airflow so that I can receive alert when the pipeline(or DAG) runs successfully or failed.


Answers:
author: John M
body: Hi [@Amratesh](/t5/user/viewprofilepage/user-id/5256517) ,

Since Airflow does not have a prebuilt integration with Opsgenie, you will need to build your own connection by first installing the packages here:

<https://airflow.apache.org/docs/apache-airflow-providers-opsgenie/stable/index.html#installation>

Then you can use the Opsgenie SDK to connect to the Opsgenie API:

<https://docs.opsgenie.com/docs/opsgenie-python-api-v2-1>

Here are instructions for settings up the API integration within your Opsenie account:

<https://support.atlassian.com/opsgenie/docs/create-a-default-api-integration/>


Tags: cloud
Its possible to assign jira service desk tickets based on the opsgenie on call calender schdule
Asked by Ankuskum:

Its possible to assign jira service desk tickets based on the opsgenie on call calender schdule


Answers:
author: John M
body: Hi [@Ankuskum](/t5/user/viewprofilepage/user-id/233478) ,

There is no straightforward way to assign the Opsgenie on-call user for each specific alert, but if your JSM and Opsgenie are on the same Atlassian site you will be able to use Jira Automation that will pull in all of your Opsgenie schedules and teams (shown in the second screenshot below) so that you can create an Automation based on the project type and then assign Jira issues to the Opsgenie on-call user for that team. Here is an example of what that looks like:![2023-07-10_10-06-46.png](https://community.atlassian.com/t5/image/serverpage/image-id/267821iCAA34D23AB97AC1C/image-size/large?v=v2&px=999 "2023-07-10_10-06-46.png")![2023-07-10_10-07-10.png](https://community.atlassian.com/t5/image/serverpage/image-id/267822i7997693ED51AA7AE/image-size/large?v=v2&px=999 "2023-07-10_10-07-10.png")


Tags: cloud
Alert to sender when closed
Asked by Kimberly Ledesma:

Is there a way to send an alert to the requestor when their issue has been acknowledged or completed?


Answers:
author: John M
body: Hi [@Kimberly Ledesma](/t5/user/viewprofilepage/user-id/5265475) ,

That depends on who the requestor is. What is the integration that is being used to create an alert in Opsgenie? Is the requestor a user in Opsgenie or a user in another system?

comments: author: Kimberly Ledesma
body: the alert is being created by an email sent in Outlook.


author: John M
body: [@Kimberly Ledesma](/t5/user/viewprofilepage/user-id/5265475) Opsgenie can only send emails to Opsgenie users.
Create an incident based on multiple alerts
Asked by Ronnie:

Hello,

Suppose that in my team we get alerts that look like this:

=======

Alert:

User has encountered a problem in prod env.

User: sampleuser

=======

I would like to automatically create an incident based on alerts from at least 3 **different** users.

How can I achieve such a behavior?


Answers:
author: Tom Russell
body: [@ronyut](/t5/user/viewprofilepage/user-id/5261742) if you have a plan that includes use of an OEC (Opsgenie Edge Connector) this shouldn't be too hard:

Have these alerts trigger an OEC script that searches for other, similar open alerts. Collect the users and do a sort -unique to see how many different users have had alerts generated. If the count is 3 or more, create an incident.

You could create the incident via the API, directly from the OEC script, but I don't believe you can currently associate alerts to an incident via the API. One way to get around this would be to just set a unique tag on one of the alerts, then add an incident creation rule that looks for that tag and creates the incident from that alert.


Tags: cloud
Fields missing for OpsGenie Salesforce integration
Asked by Ben Johnson:

I am getting the following errors while trying to get connect opsgenie to Salesforce.

Variable does not exist: EngineeringReqNumber__c

Variable does not exist: PotentialLiability__c

These fields do not exist in our SFDC org. If these custom fields need to be created for the OpsGenie integration, where is the documentation of the field configuration (data types, field level access etc)?

<https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-salesforce-service-cloud/>


Answers:
author: Shashwat Khare
body: Hello @\[deleted\]   

I'm Shashwat from the Atlassian Team and here to help!   

Please refer to the below document for the missing field definitions:  

<https://opsgenie-218b8922aad7.intercom-attachments-1.com/i/o/149521223/c99d3ec82e305d86f44e3e36/opsgenieTrigger.txt>  

This payload has the definitions for both the variables, EngineeringReqNumber__c and PotentialLiability__c  

Best,  
Shashwat
Add tags or extra properties with custom action
Asked by David Bell:

How can I add a custom action in Opsgenie that enables me to manipulate the alert itself, such as adding tags or extra properties?  

considering that setting Opsgenie API as a generic API endpoint for this purpose is currently blocked  


Answers:
author: John M
body: Hi [@davidbell](/t5/user/viewprofilepage/user-id/5260419) ,

You can either send the request to a third-party endpoint like a lambda function or you can use OEC to execute a custom script which will point back to the Opsgenie API.


Tags: cloud
Opsgenie to statuspage components
Asked by Cludts Jasper:

Hi all,

I'm trying to setup an integration between Opsgenie and Statuspage where the goal is that when there is a new alert in Opsgenie it creates an incident in statuspage and updates the matching component as wel.

The first part was not so hard to setup and is currently working fine, however I don't seem to find the option to automatically update a component as well.

Is this possible to configure somewhere in Opsgenie or Statuspage itself? Or is this going to be a custom integration that I'm going to have to setup?

Cheers


Answers:
author: John M
body: Hi [@Cludts Jasper](/t5/user/viewprofilepage/user-id/5259890) ,

Statuspage components can be updated via tags in Opsgenie. This section of the integration doc gives some examples with screenshots of how to set that up:

<https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-statuspage/#Changing-Component-Incident-Statuses-via-Alert-Tags--Optional->

comments: author: Cludts Jasper
body: Hi John,

Thank you for your reply. I have tried to set this up using tags but it does not work. As shown below. The these tags part is this: **cmp_PRTG Network Monitor:major_outage** and **PRGT Network Monitor**is the name of the component in statuspage

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

I would like to add that we want to use this integration only from Opsgenie to statuspage because in the documentation the first line in the screenshot is used in **the** **Send Alert Updates Back to Statuspage** part of the integration. We want to send all our alerts to Opsgenie and go from there.

Thanks again


author: John M
body: [@Cludts Jasper](/t5/user/viewprofilepage/user-id/5259890) ,

The component tags will only work on alerts that are already linked to Statuspage incidents. When you create an alert, it will send the 'create incident' action to SP and SP will reply back with an incident ID, which will display as a tag on the alert. If that tag displaying the incident ID is not present, that means the alert is not linked to SP and cannot send update actions.

![2023-07-06_10-21-09.png](https://community.atlassian.com/t5/image/serverpage/image-id/267240i22730A358A14580A/image-size/large?v=v2&px=999 "2023-07-06_10-21-09.png")

If you are trying to add the tags when the alert is created (not adding them after the alert has been created) you will need to use the "create an incident AND update the comments according to tags" action instead of the "update according to tags" action.

If you don't want to send any actions from SP to Opsgenie, you can simply delete the 'create' actions:

![2023-07-06_10-29-57.png](https://community.atlassian.com/t5/image/serverpage/image-id/267241iAC50D2C02934962F/image-size/large?v=v2&px=999 "2023-07-06_10-29-57.png")


author: Cludts Jasper
body: Hi John, Thanks for clearing that up. I got the integration between Opsgenie and Statuspage components working now. I have noticed that the tags have a certain 'maximum length' but that is something that we can avoid by reducing our component names.
Can you map JSM Service to Opsgenie Service
Asked by Ste404:

Hi there,

Per the subject can I add in the details section of the incoming automation rule that I take the Service from a JSM Incident and add it to the Opsgenie Alert?  

Not sure if that will break things due to an integration for Team A takes ownership for JSM incidents but the service has Team B as the owner of the service?

Is there any mapping available lie there is for {{status}} and {{priority}} etc?

Thanks.


Answers:
author: Shivam Naik
body: Hi [@Ste404](/t5/user/viewprofilepage/user-id/4984517) ,

Happy to help!

In terms of Owners and Responders, this should not break anything! The Owner team will be designated as Team A since they are the Owners of the integration, but upon associated the Service with it, it will add them as additional Responders to the notification flow. So nothing will get broken with those two teams being associated with it.

As for if those two fields are mappable, if they [appear as draggable fields in the Incoming Automation rule](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management-cloud/#Add-an-incoming-automation-rule) , but if they don't then you might need to set up a system in which the Incoming payloads include tags that you can leverage with Global Alert Policies to attach relevant Services and Teams with. OEC could also be an option here, but it does involve a different workflow.

Please let me know if you have any follow up questions!
The logs in Kibana suddenly stopped coming to Opsgenie as alerts
Asked by Shyam Kumar:

The alert rule in Kibana is satisfying and giving 2 documents. But, the alert is not triggering to Opsgenie. The integration was done perfectly. Previously for the other alert rule which is same, the alert got triggered but now it's not working. What might be the reason for this ?


Answers:
author: John M
body: Hi [@Shyam Kumar](/t5/user/viewprofilepage/user-id/5258353) ,

Typically if there is data being sent to Opsgenie but no alert is being generated, the best place to check is the debug logs which any admin user can access by going to **Settings \>\> Debug \>\> Logs** on the lefthand menu.

If an incoming payload is discarded, the logs should state the reason, for example, "incoming data did not match any existing actions" which means that the filter on the create action did not match the values on the payload and therefore no action was triggered.


Tags: alert
Alerts integration with several environments - Options
Asked by Alexander Turbin:

We have two environments - UAT and PROD, where we would like to have an integration with OpsGenie, in particular - emit Alerts from internal services.

Currently we use one account and one Alerts integration for those.

As there are Rate Limits, we want to make sure whatever disaster happens in UAT, it doesnt affect (much) PROD.

What is the recommended solution for the described situation?

Sofar we have considered:

a) Have separate accounts for UAT and PROD.

Downside: we need somehow to clone and copy all configurations and rules to the second account.

b) Have a second integration within same account and activate so called "**integration fairness** " (see <https://docs.opsgenie.com/docs/api-rate-limiting>).

There is very limited documentation on it - would it be possible to specify in percentage what share to give to one integration and what to another (e.g. 25% to UAT and 75% to PROD) ?

Appreciate your help


Answers:
author: Muhammad Zeeshan
body: Hey [@Alexander Turbin](/t5/user/viewprofilepage/user-id/4801359) ,

I would suggest option b) as it would help keep all your configuration in one place and make it easier to manage your on-call. As for the 'integration fairness' yes we can apply that for you on our end, however, the percentage completely depends on your use case and how many alerts you expect from either environments. Therefore, there is no recommended percentage as it may vary from customer to customer.

Hope this helps answer your query.

Kind regards,

comments: author: Alexander Turbin
body: Thanks [@Muhammad Zeeshan](/t5/user/viewprofilepage/user-id/2797972),

i was not sure if you do have the possibility to define which integration receives which quota or its just equal split.

What is the optimal channel to request "Integration fairness" ?


author: Muhammad Zeeshan
body: Hey [@Alexander Turbin](/t5/user/viewprofilepage/user-id/4801359) ,

You can simply reach out via the Chat support on the bottom right of your Opsgenie GUI or via <https://support.atlassian.com/contact/>

BR,


Tags: cloud
422 Unprocessible entity teams#null
Asked by Abhilash Gajulapally:

When I make a post request from thunder client to <https://api.opsgenie.com/v2/alerts>  

Body :   
{  
"message": "This is the notification message",  
"teams": \["abhilash8642"\],  
"priority": "P1",  
"source": "Your Application",  
"description": "Additional details about the alert",  
"details": {  
"key1": "value1",  
"key2": "value2"  
},  
"tags": \["tag1", "tag2"\],  
"note": "Optional note for the alert"  
}  

Response :  

{  
"message": "'teams#null' is invalid",  
"took": 0.001,  
"requestId": "f2979ef8-a641-4f3e-b5c0-c64befc5b9c1"  
}  

<br />

But the team i specified abhilash8642 is present.  
Can someone help?


Answers:
author: John M
body: Hi [@Abhilash Gajulapally](/t5/user/viewprofilepage/user-id/5257083) ,

Instead of 'teams' you will want to use 'responders', with teams as a child. Here is an example:

"responders":\[ {"name":"abhilash8642", "type":"team"} \],


Tags: cloud
Updating StatusPage incident status from Opsgenie tags
Asked by Ste404:

Hi there,

Using the cmp_ prefix I can update the component outage type via tags.

Is there a format of tag I can use to add to an Opsgenie alert that will move the statuspage incident along to the appropriate status.

Trying to avoid having an agent working on the alert bouncing between Opsgenie and Statuspage just to update the status.

Thanks.


Answers:
author: Muhammad Zeeshan
body: Hey [@Ste404](/t5/user/viewprofilepage/user-id/4984517) ,

Yes indeed you can use a tag format to change the incident status the following way:

inc:*prefix*

as stated in the documentation:

![Screenshot 2023-07-03 at 14.51.39.png](https://community.atlassian.com/t5/image/serverpage/image-id/266349i36D20E7CD97A4B39/image-size/large?v=v2&px=999 "Screenshot 2023-07-03 at 14.51.39.png")

comments: author: Ste404
body: wow, thanks for that I am not actually sure how I missed it. I read up on about adding the cmp side of things to alerts to update the components and just must have went too far down that road and forgot to look back :D

Will dig out that part of the doco again.

cheers.
Can a policy or alert detect if this event has an open alert and branch from there?
Asked by Russell Johnson:

I want alerts the second time something occurs.   

It seems to me we have de-duplication, so it's there, at the end of the flow.   

When the event count is greater than 1, send the alert. That seems straightforward enough.   

I have the integration set up so it will close an alert if it gets a success after it gets a failure. This works like a champ.   

The latter would be a good bonus.


Answers:
author: John M
body: Hi [@Russell Johnson](/t5/user/viewprofilepage/user-id/5242728) ,

You can use a team-based notification policy to delay alerts until the deduplication count has reached a certain number. Keep in mind, this will only occur on the alerts where the team is assigned as the 'owner-team' of the alert:

![2023-06-30_15-12-24.png](https://community.atlassian.com/t5/image/serverpage/image-id/266110i1F733F136ADFE0C6/image-size/large?v=v2&px=999 "2023-06-30_15-12-24.png")

comments: author: Russell Johnson
body: Thank you for the response. I've configured the settings as stated, and I'm waiting to test them.


Tags: cloud
Delay alert notification to slack and suppress if alert is closed before the delay expires.
Asked by Elmo Yeldo:

Hi,

We've a Dynatrace \& slack integration where we expect alerts from Dynatrace is being notified on a slack channel.

We are looking for a way to delay alert (coming from Dynatrace webhook) notification and don't notify the slack channel if the alert got automatically closed by Dynatrace before the delay expires.

Is this possible?

Thank you,


Answers:
author: John M
body: Hi [@Elmo Yeldo](/t5/user/viewprofilepage/user-id/5256653) ,

Currently, there is no way to delay Slack notifications though we do have a feature request logged for this, which you can follow here:

<https://jira.atlassian.com/browse/OPSGENIE-726>

You may be able to apply a workaround that would involve only sending Slack notifications for a specific "add note" action that is automatically triggered on the Dynatrace side when the 'delay' you mentioned expires.
I,m not getting emails alerts from airflow.
Asked by Amratesh:

I,m not getting emails alerts from airflow. can anyone tell me how we can integrate email alert in opsgenie with airflow for successful dag run or fail. thanks in advance.


Answers:
author: John M
body: Hi [@Amratesh](/t5/user/viewprofilepage/user-id/5256517) ,

Have you tried using the email integration in Opsgenie?

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


Tags: cloud