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:
Please go to Project Settings>Automation>Create Rule
Trigger - Work Logged
Action - Send Web Request
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
HTTP method - GET
check box - Delay execution of subsequent rule actions until we've received a response for this web request
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
Key - Authorization
Value - In value please put “Basic encoded_Base64_token” (without quoting)
Add {{smart values}} condition:
First value: {{webResponse.body}}
contains
Second value: tracking_mode=manual
Add Action: Send Email
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.
Fully build automation should look like this: