Create tasks in Jira on a schedule
Recipe ToolsMarketingProject ManagementDeveloper ToolAPI Integration
What it does
Every 5 minutes in Clock, this automation searches Jira for issues matching a query and processes them through custom logic. It sends the data to an external system and logs results so the team can track what ran.
Who it's for
Engineering teams who need to sync Jira issues to external systems on a regular cadence.
How teams use this
Sync Jira issues to a project management tool
Run the query every 5 minutes to find new issues, transform them with custom code, and post them to an external system. The team sees all Jira work reflected elsewhere without manual steps.
Route issues to different systems by type
Modify the JQL query to filter issues by project or status, then use the JavaScript step to route each batch to the right external system. Only the query and routing logic need to change.
Add approval before sending to external system
Include a condition in the JavaScript code to check issue priority or assignee, so only approved work is sent downstream. This adds a safety gate without changing the schedule or query.
How it works
- Run every 5 minutes. This automation starts on a schedule, checking for work to do every 5 minutes without manual intervention.
- Search issues by JQL. Query Jira for issues that match specific criteria so only relevant work is processed in each cycle.
- Execute task creation logic. Run custom JavaScript code to transform the issue data and prepare it for the external system.
- Send data via HTTP. Post the processed task data to an external system so it stays in sync with Jira.
- Log results to Job report. Record what happened in this cycle to the Job report so the team can audit the automation and troubleshoot if needed.