It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting 400 from Jira while trying to create an alert from Opsgenie Edited

Hey, I have configured the JIRA and Opsgenie integration. But when it tries to create an issue it returns a 400 from JIRA, any ideas?

Could not send [createIssue] action to JiraServiceDesk [JiraServiceDesk - DevOps]. Reason: 400

 

{
"alertLogOwner": "System",
"responseBody": "{\"errorMessages\":[],\"errors\":{\"issuetype\":\"issue type is required\"}}",
"_outgoingData": {
"_headers": {
"Authorization": "...",
"-Content-Type": [
"application/json;charset=UTF-8"
]
},
"integrationType": "JiraServiceDesk",
"_payload": {
"_fields": {
"summary": "Test Alert from Opsgenie",
"-labels": [
"fromOG"
],
"_project": {
"key": "DEVOPS"
},
"_issuetype": {
"name": "Task"
},
"description": "The alert has no description."
}
},
"integrationName": "JiraServiceDesk - DevOps"
},
"alertId": "4gh3bsfk9-88b3-555n-9b97-23432b234234-234234234234",
"alertLogType": "system",
"statusCode": "BAD_REQUEST"
}

I have double-checked the configurations and they are set up correctly though.

Screen Shot 2020-03-03 at 4.17.31 PM.png

 

 

Screen Shot 2020-03-03 at 4.19.15 PM.png

2 answers

1 accepted

0 votes
Answer accepted

I have resolved this by creating a new issue type in Jira with the same name that I am providing in the Issue Type Name field.

1 vote
Samir_Kafel Atlassian Team Mar 04, 2020

Hi @Awais_Ali  - it looks like it's saying there is no issue-type specified. In your Jira integration in Opsgenie, did you specify the issue-type you want the Jira issue to be created with in this field?

jiraScreen.png

Hey @Samir_Kafel,

Thanks for the reply. I am providing the issue type. I have resolved this by creating a new issue type in Jira with the same name that I am providing in the Issue Type Name field. 

The opsgenie integration marks the fields shared in the screenshot as mandatory so you have to provide these in order to set the integration up (if you have not checked the oec checkbox)

I was supplying the same issue types that I had in my project in Jira previously as well but I guess there was some access issue that was not causing it to create the issues on Jira. This was all set once I created a new type with no restrictions. Anyways this is good to close now. 

Like Samir_Kafel likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Opsgenie

A deep dive on Routing Rules

  Hi there! Folks new to Opsgenie sometimes can get a bit perplexed when setting up their Routing Rules and Escalation Policies. Especially if they’re used to using an excel spreadsheet for sc...

183 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you