Note |
---|
RequiredTo perform this use case, you need to have technical knowledge. If you need any kind of help, you can contact us through help@deiser.com |
...
2. Create a single selection list field called "Country (issue)" in Jira. (Please, keep in mind that the field "Country (issue)" is only an example)
Create an automation rule
1. Configure trigger
Create a new trigger → Issue created
...
Add component → New condition → Issue fields condition
4. Get the authorization token
Add the steps “Get the Projectrak JWT” and then “Store the JWT in a variable“, described at this link: https://deiser-apps.atlassian.net/wiki/spaces/PROJECTRAKCLOUD/pages/1641490/How+to+create+a+Projectrak+authorization+in+Automation+for+Jira?src=search
Note |
---|
Important: |
5. Get value from the Project field "Country (project)"
...
Web request URL: https://profields-cloud.deiser.com/values/projects/{{project.id}}/fields/65934
Headers:
Content-Type: application/json
Authorization: Bearer {{projectrakJwt}} → Understand how to create a Projectrak authorization in Automation for Jira → defined in step 4
HTTP method: GET
Web request body: Empty
Check: Delay execution of subsequent rule actions until we've received a response for this web request
...
56. Compare issue value with project value
...
First value: {{webhookResponse.body.value.formatted}}
Condition: does not equal
Second value: Empty
...
67. Update the issue with the Projetrak value
...
Choose fields to set: Country (issue)
Value: {{webhookResponse.body.value.formatted}}
...
Rule 2: Update issues with Projectrak value every day
1. Schedule an execution
Add trigger → New action → Scheduled
Run rule every: 1 Weeks
On: Every weekday
At: 9:00 am
Check: Run a JQL search and execute actions for each issue in the query
...
2. Check Country (issue) field is not empty
Add component → New condition → Issue fields condition
3. Get the authorization token
Add the steps “Get the Projectrak JWT” and then “Store the JWT in a variable“, described at this link: https://deiser-apps.atlassian.net/wiki/spaces/PROJECTRAKCLOUD/pages/1641490/How+to+create+a+Projectrak+authorization+in+Automation+for+Jira?src=search
Note |
---|
Important: |
4. Get value from the Project field "Country (project)"
...
Web request URL: https://profields-cloud.deiser.com/values/projects/{{project.id}}/fields/65934
Headers:
Content-Type: application/json
Authorization: Bearer {{webResponse.body.jwtprojectrakJwt}} → Understand how to create a Projectrak authorization in Automation for Jira → defined in step 3
HTTP method: GET
Web request body: Empty
Check: Delay execution of subsequent rule actions until we've received a response for this web request
...
45. Compare issue value with project value
...
First value: {{webhookResponse.body.value.formatted}}
Condition: does not equal
Second value: Empty
...
56. Update the issue with the Projetrak value
...