Examples of customizations you can build with Clockwork

 

Automation that sends an email when a worklog was created manually

 

This automation aims to check if the worklog was created manually and send an email informing the manager/specific user about that. Below, you can find step-by-step instructions to achieve this:

 

  1. Please go to Project Settings>Automation>Create Rule

  2. Trigger - Work Logged

  3. Action - Send Web Request

    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 box - Delay execution of subsequent rule actions until we've received a response for this web request

    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

         

  4. Add {{smart values}} condition:

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

    2. contains

    3. Second value: tracking_mode=manual

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

Fully build automation should look like this: