Webhook not working - 405 method not allowed

David Plesu
Contributor
January 30, 2024

Hello,

I hope you are doing well!

Following this request: [JRACLOUD-64883] Attachment Hell with emailed comments - Ignore email icons when auto-importing attachments from email replies - Create and track feature requests for Atlassian products.

I want to be able to delete the signature when a issue is created from the mail.

I created the same automation, but the webhook is not working.

web request: https://my-atlassian.net/rest/api/3/{{Key}}?fields=attachments.

http method: get

web request body: empty

delay: checked

Headers:

key: Authorization

Value: Basic api-token(from my account)

When I try to validate with a issue i get:

Response 405 Method not Allowed.

Thanks!

Regards,

David.

1 answer

0 votes
Kalyan Sattaluri
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.
January 30, 2024

I am not sure of the use case you are trying to solve, but first you need to solve your credentials problem.

From my understanding, in cloud, you cannot directly use API Token you got from atlassian with Basic auth. You need to base64 encode it. 

Please review below article:

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

At a high level:

  • - you need to gather your API token
  • - encode your credentials, which is <youremailID:TokenfromAbovestep> in base64
  • - Use Authorization Basic <encodedstringfromabove> to make your call.

My recommendation is to use an URL for rest api without smartvalues to verify you are able to validate and then use it with smart values.

David Plesu
Contributor
January 30, 2024

Thank you~

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events