Good evening everyone!
Faced a problem, unable to create a valid groovy request in the script runner. I need to create a field in the epic, which would contain all the information about the clock in the related issues. Scheduled hours logged and remaining hours.
ScriptRunner often writes "No such property: issue for class: Script68", never managed to create a request that would satisfy the plugin.
I found the perfect query jql "project = TEST and assignee = currentUser () and issueFunction in aggregateExpression (" Total Estimate for All Issues "," originalEstimate.sum () "," Remaining work "," remainingEstimate.sum () "," Time spent for all issues "," timespent.sum () ")"
It displays the necessary information, but I can’t understand how to add a groovy query to it 