It looks like toString of the Sprint class which isn't very easy to parse/read with an application. Is their a way to simple get the Sprint Name or id returned through the REST API. It's necessary to be able to retrieve the Sprint value in an internal tool for our QA Team (Spira Test).
I'm not particularly proud of this solution, but it does the trick.
@Stef Klaassen, thank you! I used your method extractSprintProperties to get readable data from sprint string retrieved from the field.
No idea why would API return JSONArray with no way to cleanly cast it to array of sprints. I also need to get the state out of sprint and mark active one.
Can you please give me the rest call url to fetch the data which you have found havent even have that url to fetch that data for me . thanks!
I just can't find the particular class/jar.
Found it, but it looks too big to include, I think I'll go with parsing it as a String.
It's not hard to parse that. The toString returns a JSON representation of that object. You just need to convert that String into a JSON object.
Haven't found a great way, but this works pretty well. Using that Java class seems like it would match best, but honestly we shouldn't have to do this sort of parsing for a JSON REST API.