Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

flask app server url not receiving post request from jira webhook

jira project
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2023

I have a flask app server deployed on render.I have a jira webhook the server url should receive a post request when a new jira ticket is created and I should get the jira ticket information.The post request is coming in render logs for me but not coming in browser ,I am not able to get jira data.

 

url -https://jira-webhook-url.onrender.com/webhook1

github repository of server code deployed on render - https://github.com/jira-project10/webhook-server/blob/main/app.py

I am not getting the post request at the url when a new ticket is created in jira.I tried checking browser console network also no request is there.

 

This is render logs

 

image.jpg

I need to get the jira details like this

 

jira.jpg

 

1 answer

0 votes
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 2, 2023

I believe you need to return the data in JSON serialized content or in strings.

from flask import jsonify

@
app.route('/webhook1', methods=['POST'])
def handle_webhook():
data = request.json
return jsonify(data)

Do you not need to render the template if you're not structuring the bits of data into the template you have? Also, it would be good to know if you had any errors or some errors.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events