Hello, we keep track of our planned-to-done statistics by relying on the Velocity chart report (see image):

How can I get these two values (commitment and completed by sprint) via JQL?
or is there any other possible way to get these two values, or the exact list of issues which summarize those values?
We need this so we can create an Excel report or a Power BI report with such data.
Thanks