I’ve been trying to figure out a way to remove multi-homed tasks from their secondary project if the source project is deleted.
Does anyone have any tips to resolve this as an automatic clear-out process would benefit the workflow immensely! I have considered the use of fields etc but not sure how to proceed.
The only way I see is to use a Script Action. Because as you realised, the default behaviour of the UI is to keep the tasks (which makes sense, they live elsewhere)
Are you on Enterprise? you never created Script Actions before? We use AI internally to write that code, it reads the Asana API documentation (amongst other instructions)
I’m commenting because I’m a little concerned about this.
Asana’s characteristic feature is that tasks can belong to multiple projects.
However, it doesn’t identify which project the original task belongs to.
Therefore, isn’t it possible that it can’t identify the “source project” in your statement, “Remove multi-homed tasks from their secondary project if the source project is deleted”?
this is one concern i had but i think that if i use the GID of the portfolio into which all new projects are created from it should work? but then again i also wonder is there a limitation if the project is created outside of the portfolio..
Yes, I’m on Enterprise. I’ve never created Script actions before so trying to figure out the best approach to it. I’ve used our general internal AI chat agent to draft a script but not sure how effective/ accurate it is as its not programmed for coding tasks.
From my experience, Claude is far superior to Copilot or Chat GPT when it comes to producing scripts for rule actions. But whichever AI you use, you will need to know some basic usage of the API docs and to feed the AI your GIDs (or any other constants).