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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Jira Automation > Error 403 every time

Hello community,

I'm trying to automate some Jenkins jobs based upon Jira changes.

I've read some other questions and articles about Webhooks and everything seems to be ok from my side, but it's failing.

Using the same headers and endpoint I can make it work with postman and with curl. What am I missing?

webRequestError.png

https://community.atlassian.com/t5/Jira-discussions/Jira-Automation-Rules-Send-Web-Request-and-APIs-protected-by/td-p/1568456

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

2 answers

1 accepted

0 votes
Answer accepted

Found the root of the problem. 

Needed to add Jira's IP addresses to whitelist them in my Jenkins server, you can find them here: https://confluence.atlassian.com/cloud/atlassian-cloud-ip-ranges-and-domains-744721662.html

0 votes
Hana Kučerová Community Leader Jan 18, 2021

Hi @David Jose Silva Ruiz ,

there's code 403, so there's probably something wrong with the authorization - are you sure the appropriate header is correct? Are you also able to get the error message?

Also the content of the field Custom data is suspicious for me - it probably has wrong format. How should your request body look like?

Thank you.

Hi @Hana Kučerová ,

For now, the custom data is not being used, so the format is not important.

And the headers are correct, using exactly the same I can trigger Jenkins (with postman & curl from terminal).

To me it looks like perhaps it has to do with proxies or something similar; how can I configure that?

Hana Kučerová Community Leader Jan 19, 2021

Hi @David Jose Silva Ruiz ,

I would recommend you to use service like RequestBin to be able to compare, how exactly the request looks like, when you are sending it from Jira and using Postman.

About proxies - some info can be found here.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

638 views 10 16
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