Tempo
This page gives guidance on using ScriptRunner with Tempo Timesheets for Jira to fulfil basic scripting needs, such as:
- Sum worklogs with a specific attribute, for example to display on the issue the amount of Overtime
- Aggregate worklogs
- Auto-create worklogs
The core of this approach lies in the two annotations discussed in Scripting Other Plugins, namely @WithPlugin and @PluginModule.
Warning: These examples use Tempo Timesheets for Jira version 10. For information that works in previous versions, see previous versions of this page.
Examples
Summing worklogs with an attribute
Tempo allows you to categorize worklogs with additional attributes. For example, we have a checkbox attribute called Overtime, and we'd like to display the total overtime on each issue.
Once configured, we should be able to search for issues where the overtime has exceeded four hours using: "Total Overtime" > 4h.
Automatically adding a worklog
See our Example Script for this.
Population of the dropdown
See our Example Script for this.