have a look into the Repository API and the section "Tasks" there:
You could use any of:
/qrs/task get condensed version
/qrs/task/full get full version
/qrs/task/table create a table
Another option is to run the qmc and check what it does (looks like it uses table when I look)
Hope this helps
Please mark the appropriate replies as correct or helpful so our team and other members know that your question has been answered to your satisfaction.