Jira tickets are not getting created on email alert receive in Opsgenie
Asked by Shah Baloch:

I integrated Opsgenie with Jira. I would like Jira to create a ticket if an alert receives in Opsgenie. I am testing it with an email. I can see email alerts in the Alert tab, but it is not creating a ticket in Jira. If I create a ticket in Jira I can see the alerts in Opsgenie, that a ticket created but it's not creating tickets if I send an email to Opsgenie. What I'm doing wrong? How it'll create a Jira ticket if an alert email receives? Attaching screenshots. Appreciate your help  

![Opsg_01.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106361i119CFCF316C06CB8/image-size/large?v=v2&px=999 "Opsg_01.JPG")![Opsg_02.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106360iBD2DA4CAB546B80D/image-size/large?v=v2&px=999 "Opsg_02.JPG")![Opsg_03.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106363i0F9EE0F4E8613361/image-size/large?v=v2&px=999 "Opsg_03.JPG")![Opsg_04.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106362i331250A89A460834/image-size/large?v=v2&px=999 "Opsg_04.JPG")


Answers:
author: Robert
body: Hi [@Shah Baloch](/t5/user/viewprofilepage/user-id/3738782) !

Could you try unchecking the "Send via OEC" box in your integration settings? Unless you have OEC set up and running, which isn't needed for most cloud deployments, that will change how we route issues back to Jira.

Another thing worth checking is that you [have used an API Token](https://confluence.atlassian.com/cloud/api-tokens-938839638.html) in the password field of the integration settings.

Hope this helps!

comments: author: Shah Baloch
body: Yes, I used API token in the password field earlier, I just removed Jira from the Opsgenie integration tab, and deleted OpsGenie from WebHooks in Jira and started over. I am not checking "Send via OEC" this time from the OpsGenie side and entered Jira password instead of API token. From Jira's side, I pasted the new URL in WebHook and saved it.

I sent a new email, it is showing the email in the "Alerts" section in OpsGenie but it is not creating a Jira ticket. Is there any other setting I have to check? Thanks for your help.


author: Robert
body: [@Shah Baloch](/t5/user/viewprofilepage/user-id/3738782) Just to clarify, we *do want*to use the API token in the password field. So it sounds like you may need to switch it back in the integration settings.

A good thing to check here is if the alert is attempting to send the action to Jira in the first place. You should see log entries like this in the alert's activity log: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/106463iA49E2286B0AF1E83/image-size/large?v=v2&px=999 "image.png")

If it tried to create a Jira issue but failed, then it should also give us the reason why there. As long as the integration is assigned to the same team the alert was created for, it should be trying to do something here.


author: Shah Baloch
body: I started over after removing links from both ends. For some reason, it does not create a Jira ticket once an alert receiver in Opsgenie.

Why it is showing "Never Accessed" from the API Token page? I just need to create an API token and paste it into the Password/ API Token field in Opsgenie, right? or do I have to enter it somewhere in Jira?

<br />

Thank you for your help!  

![opsg-81220-01.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106475iEA71067A88EE5666/image-size/large?v=v2&px=999 "opsg-81220-01.JPG")![opsg-81220-02.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106476i3C478CD091BB3CEC/image-size/large?v=v2&px=999 "opsg-81220-02.JPG")![opsg-81220-03.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106473i322E4B57543B5713/image-size/large?v=v2&px=999 "opsg-81220-03.JPG")![opsg-81220-04.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106474i56F6E28028AAA400/image-size/large?v=v2&px=999 "opsg-81220-04.JPG")![opsg-81220-05.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106477i5C1EBAE7C1F6F205/image-size/large?v=v2&px=999 "opsg-81220-05.JPG")


author: Shah Baloch
body: This is the screenshot of Activity Log

![opsg-81220-06.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/106478iEFAC7418BD0E0D6F/image-size/large?v=v2&px=999 "opsg-81220-06.JPG")


author: Robert
body: [@Shah Baloch](/t5/user/viewprofilepage/user-id/3738782) In your integration filters I see

```
PRIORITY GREATER THAN P3
```

as a requirement to create a Jira issue. Could you try this with a P1/2 alert or change that field to "Match all" for now?

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

Also, feel free to follow up in our chat support (blue icon in the lower-right hand corner of the screen) and we can work through this there as well!


author: Shah Baloch
body: This is can be closed. I reached out to support. Thanks


author: abhinav sayankar
body: Hi ,

Hope you are doing well!

Can anyone post the steps on how I can create a ticket on Jira based on opsgenie alerts?


Tags: alert

cloud

email

issue-create

jira-software