try the following query (10004 is the id of the sprint customfield)
SELECT p.pname as project, min(s."START_DATE"), max(s."END_DATE") FROM "jiraissue" i JOIN "customfieldvalue" cf ON cf.issue = i.id AND cf.customfield = 10004 JOIN "AO_60DB71_SPRINT" s ON s."ID" = cf.stringvalue::int JOIN "project" p ON p.id = i.project GROUP BY p.pname
Thanks for the response. As per above query i don't have any custom field.
My requirement as fallows.
|Project Id||Project Name||Start Date||End Date|
Start Date: Project first Sprint start date
End Date: Project end Sprint end date ( if sprint is not completed as per today date it should be empty)
You have a sprint custom field (which associates an issue with a sprint) created implicitly by JIRA software/JIRA agile - you will have to check its id manually and replace it in the query, as it is different for different JIRA instances. The above sql will return start and end dates as seconds since epoch - you will have to convert them to date manually, depending on the type of your db server
If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot