Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1. Configure trigger

...

Create a new trigger : When value changes -> Every time the due of an issue is edited (or created)
Image Removed

2. New Action → Send web request

→ Field value changed

  • 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.

...

  • Content-Type: application/json
  • Authorization: application/json

...

Image Removed

3. New Action → Create variable

  • Variable name: projectrakJwt
  • Smart value: {{webResponse.body.jwt}}

Image Removed

4. New Action → Send web request

atlassian.net/wiki/spaces/PROJECTRAKCLOUD/pages/1641490/How+to+create+a+Projectrak+authorization+in+Automation+for+Jira?src=search

Note

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

Info

For this example, our End date field from Projectrak has the id: 2870

(warning) Replace using your id

  • Web request URL: https://profields-cloud.deiser.com/values/projects/{{issue.project.id}}/fields/2870

  • ℹ️  Replace the ID of Projectrak field
  • Headers:

    • Content-Type: application/json

    • Authorization: Bearer {{projectrakJwt}}  → Defined in step 2

  • HTTP method: GET

  • Web request body: Empty

    Custom data (Replace for your Projectrak API ID key and API key) -> See how to create it

  • Check: Delay execution of subsequent rule actions until we've received a response for this web request

...

5. New Action → 4. Store the field object in a variable

Add component → New action → Create variable

  • Variable name: projectEnddate

  • Smart value: {{webResponse.body.value.value}}

...

6. New Condition → Advanced compared 5. Compare dates between the project and the current issue

Add component → New condition → Advanced compare condition

  • First value: {{issue.duedate}}

  • Condition: grater than

  • Second value: {{projectEnddate}}

...

7. New Action → Send web request

6. Update issue field with project value

Add component → New action → Send a web request

Info

For this example, our End date field from Projectrak has the id: 2870

(warning) Replace using your id

  • Web request URL:

     https

     https://profields-cloud.deiser.com/values/projects/{{issue.project.id}}

  • Headers:

  • HTTP method: POST

  • Web request body: Custom data

  • Custom data

    (ℹ️ Replace for the Projectrak field ID key and the issue field) 

Code Block
[
  {
    "fieldId": 2870,
    "value": "{{issue.duedate}}"
  }
]
  • Check: Delay execution of subsequent rule actions until we've received a response for this web request

Image Removed

...