List Tasks based on Template

If I create a Template in Kapacitor, then I create 100 tasks on that template, how can I see from the list of tasks which template (if any) the tasks is using?
Likewise, if I list the template how do I see which tasks are using the template.

If I am going to modify a template then I need to know the impact of doing so.

Agreed, it should be easy to query the impact of changing a template.

The CLI doesn’t make this very easy at the moment. Currently with the CLI you have to kapacitor show each task and grep out the template name.

I have created this issue to track improving the API to make this easier. https://github.com/influxdata/kapacitor/issues/1368