Hi,
I have a JQL filter to retrieve the list of jira issues for a given project for an active sprint. Each issue has a Story Points field that has story points numerical value for it.
I am looking for a way to use jira api to call this filter something like :-
https://jira.***com/rest/api/latest/search?jql=filter=12667
This generates a JSON response with story point custom field appear as many number of times as there are issues in that filter. So lets say my story point field is customfield_10106 then i can see 14 occurenecs of this field since the filter returns 14 issues and for each occurence of customfield_10106 there is a value tied to it which is the numerical value of story points for that issue. so something like
"customfield_10106":3.0 // where 3 is the story points for that issue.
Is there a way to parse this json from the api and calculate the sume of story points for each occurence through a simple shell script ort directly use api to manipulate that.
Or is it better to use script runner to configure a scripted custom field that calculates the sum of the story points for a given jql filter and then pass that in rest api to display that total sum value?
Or are there other easy approaches to achieve this?
All we are looking for is to use jira rest api to get a response that gives us the sum of total story points for a given active sprint in a project.
Any help or suggestions here will be greatly appreciated as always.
Cheers,
Ashley