Hi,
Thanks for sharing the requirements here. I have worked with JIRA API and have extracted sprints information consisting of Epics, Tasks, Bugs and the time spent between different stages of a task i.e in progress, code review, QA etc. I think i can easily do this task if you want something similar. I will provide you the script as well so that you can extract yourself in future. Let me know when can we discuss further. Hoping to hear back from you.
Thanks