Advice on how to call a REST service from a Task

How can I call a REST based URL from a Task in order to run a report with parameters for example https://wiki.openmrs.org/display/docs/How+to+run+a+Reporting+Module+report+through+a+URL

Did you figure this out?

What is Task in this context?

@dkayiwa Nope I did not