We have a scripted field to loop into the issue to calculate the cost with formula as below, for every issue.
Vendor cost = No. of hours clocked X Rate per hour
We use the below JQL to filter the issue which has clocked hours for a current month
worklogDate >= startOfMonth() and worklogDate <= endOfMonth()
The total cost is wrong because it takes all the worklog under the issue. For instance, in the issue we have one worklog on August and another worklog on December.
Are there any ways to get the exact worklogs for a specific month or time range to do a calculation by using Issue Navigator??
Idea is if the script can capture and get the time range, result from Issue Navigator and do the calculation.