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.
This is pretty old - any updates, gang?
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?
Thanks to your comment! I was able to go further with research and found the right documentation at https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/
Hope it helps
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Become an effective Jira admin
Manage global settings and shared configurations called schemes to achieve goals more quickly.
Streamline Jira administration with effective governance
Improve how you administer and maintain Jira and minimize clutter for users and administrators.
Learning Path
Become an effective Jira software project admin
Set up software projects and configure tools and agile boards to meet your team's needs.