Alias field
Asked by Sanchit Aggarwal:

Hi Team,

I am new to this OpsGenie tool and I want to stop duplication of alerts receiving through emails. Everytime a new alert appear, It will create new alert.

When a ticket is created in JIRA, It will updated in Opsgenie also but when an alert is created in opsgenie, new ticket is not created in JIRA.

Please help me out in these matters.


Answers:
author: Andrew Laden
body: Is your Jira cloud, or on prem? That will impact how the process works.

In general, you have to think of this as two different integrations.

Jira -\> OpsGenie. In this case, When a Jira ticket is created, it sends a notification to opsgenie to reach out to the on call user. But the ticket itself is (usually) managed in Jira

OpsGenie -\> Jira. In this case, some other integration in opsgenie creates an incident in opsgenie, and that alert creates a jira ticket. In this case, you can may manage the initial response in opsgenie, but do follow up in jira. (it all depends on what you want to do)

What you want to be careful of is trying to use both at the same time, so you don't end up in a loop.

So the real question is what do you want to do?

comments: author: Sanchit Aggarwal
body: Hey,

I am using JIRA server.

I integrated my opsgenie with email integration to create alerts according to emails and after that alerts need to create ticket in JIRA.

Here alerts are created with emails but JIRA is not creating tickets according to alerts. I have also generated API token for integration but still it is not working.


author: Andrew Laden
body: Is your Jira Server reachable from the internet? If so you should be able to set up an integration in opsgenie directly at

<https://app.opsgenie.com/integration#/add/Jira>

There is a section there where you will need to enter the URL and login credentials of your jira server. Opsgenie will then make API calls to your server directly to create and manage issues.

If your Jira Server is not available from the internet, as an additional step you will need to run a process called OEC on your jira server. This is a "edge connector" or proxy that makes an outbound connection to Opsgenie, listens for events that are sent to it. <https://docs.opsgenie.com/docs/oec-overview>

(there used to be a product called "marid" that did the same thing, I am more familar with marid then OEC, though I guess I will need to upgrade at some point.


author: Sanchit Aggarwal
body: Hey,

I referred this document and not able to achieve anything. This document is a bit confusing.

Do you have any other way to integrate JIRA?


author: Kate Clavet
body: Hi [@Sanchit Aggarwal](/t5/user/viewprofilepage/user-id/3643727) try this document, it explains it a bit more. <https://docs.opsgenie.com/docs/jira-integration#section-integration-via-oec-for-jira-software-server-data-center-usage>


author: Kate Clavet
body: Hi [@Sanchit Aggarwal](/t5/user/viewprofilepage/user-id/3643727) Andrew makes a great point. Be sure that the way that you set up the integration makes sense for your use case. Use the action mapping portion of the integration set up, so that you're not creating an Opsgenie alert for every Jira Issue. If you're using Cloud, this is what it looks like for both Jira and JSD:

![Screen Shot 2019-11-20 at 2.22.15 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/73589iDC2567925A7C0DBF/image-size/large?v=v2&px=999 "Screen Shot 2019-11-20 at 2.22.15 PM.png")

Hopefully what [@Andrew Laden](/t5/user/viewprofilepage/user-id/744425) and I write makes sense, let us know! :)