I don’t think you need an email trigger here, you need a webhook trigger.
Do a trigger webhook or call API step tied to your app-interaction button. Send over the project ID and the project “type”.
Then, in the webhook trigger, loop through your global tasks table, filter those that have the same project type as the type that is sent through webhook, and add them to your tasks table.