Jira Automation web request throws 403

Jamshaid
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.
March 28, 2024

I am sending a web request using Jira Automation and it ends up with the following error message

 

123.png

When I send the same request using POSTMAN, it works fine but on Jira, it throws the above error. Here is my rule:

1234.png

Here is my web request

12345.png

what is wrong with this. i am unable to understand the logic behind error.

4 answers

3 votes
Julian Governale
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.
March 28, 2024

This may be related to this comment: https://community.atlassian.com/t5/Jira-Software-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/bc-p/1595132#M3843

 It looks like your application is running on port 7000 which according to that comment, is not a part of the allowed ports from the Send Web request action.

0 votes
Asim K
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 4, 2024

Please note that the Postman and jira automation (via REST API) works slightly differently and their auth credentials are different as well. Postman works with aPI token directly but for Jira automation (to access REST endpoints) you need to follow the steps mentioned in this document under the heading *Supply basic auth headers* (steps 1-5).

* [Basic auth for REST APIs|https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis]

Please let me know if this works for you?


Cheers,

 

Asim

 

0 votes
richard_li
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!
November 26, 2024

hi, @Jamshaid have you solved this problem? I want to notify n8n of Jira's event through automation, and the response is also 403, but it can be successfully notified using Postman

0 votes
Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2024

Hi @Jamshaid 

 

403 means that user that you used is not allowed to do that.

Can you re-check user credentials?

URL don't look like a standard jira API. Is ti something provided by add-on?

 

Regards,

Seba

Jamshaid
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.
March 28, 2024

Hi @Sebastian Krzewiński 

Thanks for responding. This is an API to my application. The user credentials are correct. As I have copied them from Postman. 

 

Jamshaid
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.
March 28, 2024

this is my postman request

123.png

1234.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events