You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Submitting deployment data retruns [ { "message": "Resource must be JWT authenticated." }].
Any help in setting up JWT authentication with exact values for callback, client id and secret value will be of great help, as an example from where to capture this data. Tried with previous articles but those are incomplete.
I'm running into this as well, and it looks like the deployments API can only be accessed using OAuth 2.0 or JWT. JWT is specific to Connect Apps, which Postman is not, and sadly it looks like when trying to create an OAuth token in Postman, it's callback URL is not allowed by Jira.
Hey @Amjad
CC: @Bradley McCrorey , @christopher_garstin
This is beacause you need to be Oauth2 authenticated first, so the problem will be split in 2 steps:
1- Retrieve an authentication token (Bearer) from Atlassian auth service (https://api.atlassian.com/oauth/token). I was able to complete this step after a lot of research (see solution bellow).
2- Call Deployment API to submit deploy data (I'm on it, but even with a valid Bearer token couldn't manage to make it work yet).
I hope unblocking you in the first step can clarify what I'm doing wrong in the seccond step. This sollution is for testing in Postman but I implemented it in python after postman PoC was working.
First step:
1. Send the token request:
Step 2:
Send the deployment data request (with received token):
Hey Danilo, thanks for the code snippets. From where do you obtain CLIENT_ID & CLIENT_SECRET information which was used for getting the token?