Setup - βοΈ Create a Projectrak authorization
Β
Step 1.Β Create a token for the Jira user
Account SettingsΒ β SecurityΒ β Create and manage API tokensΒ β Create API Token
1. Label:Β testautomation
2. Store your Jira token (something like this):
Step 2. Create a Projectrak ApiKey
1. Navigate from Jira to: Project Portfolio > More Options (represented by ββ¦β) > API Integrations.
2. Create an Api Key
3. Name:Β testautomation
4. Save
5. Store the result for API Key ID and API Key (something like this):
Β
Step 3. Get the Projectrak JWT
Add componentΒ β New ActionΒ β Send web request
Web request URL:Β https://profields-cloud.deiser.com/api-keys/jwt
Headers:
Accept:Β application/json
Content-Type: application/json
HTTP method: POST
Web request body: Custom data
Custom data:
{ "name": "testautomation-557058:093b8c8e-fcfd-48c2-9f42-467780eb8584-EXAMPLE", "password": "U5FMrLin6CBMv8rxQORqYyOgMDXJ4l3kH0UcjINM-EXAMPLE" }Check:Β Delay execution of subsequent rule actions until we've received a response for this web request
Β
Step 4. Store the JWT in a variable
Add componentΒ β New ActionΒ β Create variable
Variable name: projectrakJwt
Smart value:Β Β {{webResponse.body.jwt}}