Use case
This use case calculates the total billable hours in Tempo logged in the current issue.
Configuration
Create a new Remote action and name it individually. Select method: POST and Default connection: Current instance
/rest/tempo-timesheets/4/worklogs/search
"{ 'taskKey': [ '"+%{issue.key}+"' ] }"
You can optinal use the parameters from ("YYYY-MM-DD") and to ("YYYY-MM-DD") to request only work logs in a specific time frame.
Create a new Calculated Number Field (by JWT) custom field and name it properly.
Providing a description will help you to identify what the custom field does but this step is optional
Parser expression
Add the following expression:
toNumber(sum(toNumberList(executeRemoteAction("<NAME OF YOUR CREATED ACTION", "body[*].billableSeconds"),","))) / 3600
Related use cases
If you still have questions, feel free to refer to our support team.