Versions Compared

Key

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

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

2. New Action → Send web request

  • Web request URL: https://profields-cloud.deiser.com/api-keys/jwt
  • Headers:
    • Content-Type: application/json
    • Authorization: application/json
  • HTTP method: POST
  • Web request body: Custom data
  • 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

Image Removed

3. New Action → Create variable

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

Image Removed

4. New Action → Send web request


4. Get the field object

Info

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

(warning) Replace using your id


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

  • Variable name: projectEnddate
  • Smart value: {{webResponse.body.value.value}}
    Image Modified


6. New Condition → Advanced compared condition

  • First value: {{issue.duedate}}
  • Condition: grater than
  • Second value: {{projectEnddate}}
    Image Modified


7. New Action → Send web request

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