Skip to main content
Skip table of contents

Clockwork Customization Example: Send Email When Worklog Created

This automation rule checks for manually-created worklogs and sends an email to notify manager/designated user.

  1. Navigate to Project Settings > Automation.

  2. Click Create Rule > Create rule from scratch.

  3. Select Work Logged as the trigger.

  4. Click Next.

  5. Select the Send Web Request action.

    1. Web Request URLs - Remember to correct your Jira URLs https://your_jira_url.atlassian.net/rest/api/3/issue/{{triggerissue.key}}/worklog/{{worklog.id}}?expand=properties

    2. HTTP method - GET

    3. Check the Delay execution of subsequent rule actions until we've received a response for this web request box.

    4. Add a header. Here you need to create the API token. It can be done on this Jira page. Next, you need to encode it in Base64. You can use this page to do that. The value to encode should have the format: your@email.adress:API_Token

      1. Key - Authorization

      2. Value - In value please put “Basic encoded_Base64_token” (without quoting)

      3. image-20240307-114847.png

  6. Add {{smart values}} condition:

    1. First value: {{webResponse.body}}

    2. contains

    3. Second value: tracking_mode=manual

  7. Add Action: Send Email

    1. Configure it as you prefer. It can be used to inform the manager, or ticket assignee that a user created worklog manually, instead of using timers.

image-20240307-115414.png

The completed automation rule should look like this:

image-20240307-115539.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.