Script Runner add-on for JIRA provides experimental feature Aggregate Expression - https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_aggregateexpression
I am curious if those results can be somehow embedded on a JIRA dashboard.
There is a REST Endpoint (
rest/scriptrunner-jira/latest/jqlfunctions/aggregateResult ) built into ScriptRunner that returns the results of the aggregateExpression function. You could send a GET request to it by fetching the a URL like the following, where the jql query parameter is a URL encoded JQL statment using aggregateExpression:
The above is equivalent to this JQL:
project=PROJ and issueFunction in aggregateExpression("Expr", "timespent.sum()")
Getting that content into a Dasbhoard is a little trickier.
Of note, we have a request in our backlog (SRJIRA-2104) to add Scripted Dashboard gadgets to ScriptRunner, which would constitute a third way. That said, it's not on the immediate roadmap for SR for JIRA.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs