Get report_ID by task_name

Yes this worked.
But now i am receiving the wrong ID :confused:
What i am trying to do is based on this older post of yours:

Its about this line:
gmp.get_report(report_id=...
If i paste the correct ID manually, it works fine.
Any idea how i get this ID based on the task name? I hope this clears up the situation.
So i want to use a variable for report_id

best regards