...
Create a Projectrak ApiKey
1. Go to: https://YOUR_INSTANCE.atlassian.net/plugins/servlet/ac/com.deiser.jira.profields/my-settings#!api
2. Create an Api Key
3. Name: testautomation
...
Add component → New Action → Send web request
Web request URL: https://profields-cloud.deiser.com/api-keys/jwt
Headers:
Content-Type: application/json
Accept: application/json
HTTP method: POST
Web request body: Custom data
Custom data:
Code Block { "name": "testautomation-557058:093b8c8e-fcfd-48c2-9f42-467780eb8584-EXAMPLE", // ApiKey Id "password": "U5FMrLin6CBMv8rxQORqYyOgMDXJ4l3kH0UcjINM-EXAMPLE" // ApiKey }
Check: Delay execution of subsequent rule actions until we've received a response for this web request
7. Store the JWT in a variable
Add component → New Action → Create variable
Variable name: projectrakJwt
Smart value: {{webResponse.body.jwt}}