Control the display and non-display of option item in the request view action section of the customer portal item based on the issue type

I am currently trying to display a modal dialog with a form on the customer portal of Jira Service Management. I am creating a YAML file and a JS file to add an option item in the request view action section of the customer portal. What I want to achieve is to control the display and non-display of this option item based on the issue type.

I am currently using the following module. As far as I know, there is no property in YAML to control the display and non-display of options. The extension context works in the actual execution file (such as JS), so I think it cannot control the request view action section of the customer portal. https://developer.atlassian.com/platform/forge/manifest-reference/modules/jira-service-management-portal-request-view-action/

On the other hand, I found the following module. This one has a property called conditions. It is described that conditions allows specifying the conditions under which the option item is displayed. However, from the attached screenshots, it can be seen that it is an old module. There is no property like function, so I don’t know how to display the modal dialog. https://developer.atlassian.com/cloud/jira/service-desk/customer-portal/#request-view-action

Therefore, please tell me how to control the display and non-display of the request view action section on the customer portal based on the issue type.

If it is not possible, please tell me how to control the request view action section of the customer portal for each project. (Creating a project for each issue type will minimally meet the requirements.)

I talk about this.

Also looking for the answer to this or some viable workaround!