...
Field to monitor for changes: Choose due date
Change type: Any changes to the field value
...
2. 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 Important:
If you don’t have already created a Projectrak API token , you have to do so as described in the first steps of the above link. If you have already got it, you can reuse it.
3. Get the field object
Add component → New action → Send a web request
...
Web request URL: https://profields-cloud.deiser.com/values/projects/{{issue.project.id}}/fields/2870
Headers:
Content-Type: application/json
Authorization: Bearer {{projectrakJwt}} →
Understand how to create a Projectrak authorization in Automation for Jira → Defined in step 2
HTTP method: GET
Web request body: Empty
Check: Delay execution of subsequent rule actions until we've received a response for this web request
...
34. Store the field object in a variable
...
Variable name: projectEnddate
Smart value: {{webResponse.body.value.value}}
...
45. Compare dates between the project and the current issue
...
First value: {{issue.duedate}}
Condition: grater than
Second value: {{projectEnddate}}
...
56. Update issue field with project value
...