Missing project id in automation action UI context

Hi,

I’m trying to build an Automation Action in Forge. When I create an automation rule via Space/Project Settings > Automation > New rule, this rule is scoped to the current space/project by default:

I was trying to get the project id from the product context using const context = useProductContext(); but there are no fields that include a project id.

Any idea how to get it? :thinking: Even the resolver function that I call within the action config UI does not receive the project in the request’s context. I’d expect that the project id is included in either context if a rule is scoped to a certain project (same if a rule is scoped to multiple projects).

Edit: I need the project id in the UI because I want to load project specific configurations (if it’s a project scoped rule) and provide a select dropdown so the user can choose something that he configured outside of this rule. Therefore, it’s not enough to get the project id using a smart value when the action is executed - that’s too late :slight_smile: