After much anticipation, our organization finally upgraded to the new pricing plan which unlocked the ‘Portfolio Rules’ feature. I had been looking forward to implementing this basic rule: - When work is added to the portfolio > set a custom field to a value
Much to my dismay, the rule doesn’t fire. Numerous projects have been added to the portfolio, but none of the projects have triggered the rule.
Our project creation process utilizes the API to instantiate projects, and add them to portfolios programatically. Does anyone know if making changes to projects via the API bypasses built-in Portfolio rule triggers?
Yes, the portfolio rule trigger works fine when projects are added to the portfolio via web or app UI. The issue only occurs when project are added to portfolios via the API. For context, I haven’t tested other triggers using the API - only the ‘Work is added to portfolio’ trigger.
Saw that the rule ran and set “SELECT THIS” custom field to “OPTION 1”
@as_an_android can you give us more details on how you’ve setup your portfolio, projects and your “Stage” custom field? If we can reproduce the issue we can narrow down the issue.
@John_Vu thank you for thoroughly testing this issue.
I was mistaken - my workflow makes an API call to instantiate a new project from a template. That template specified that new projects created using the template should be added to the portfolio.
Rather than try to figure out why that doesn’t work, I’ve adjusted my workflow to use the /portfolios/{portfolio_gid}/addItem endpoint to add new projects to the portfolio, as this successfully triggers the built-in portfolio rules.
Appreciate your help!
Thanks for pointing me in the right direction, @Phil_Seeman !