Check which template was used in portfolio rules

For automatic categorisation purposes, it would be handy to check which project template was used as a condition in portfolio rules.

Related: Set field values of project (that show up at portfolio level) in template