Convert the pending tasks section to a tasks list