Dynamically Adding Menu Action Items in Atlassian Forge App

Hello Community,

I’m currently developing an Atlassian Forge app and I have a requirement to dynamically add new menu action items in the Service Desk Portal User Menu. I understand that the manifest.yml file is static and cannot be modified at runtime.

Here’s a snippet of my manifest.yml file:

    - key: "sd-portal-user-menu-action"
        value: "My user menu action"
      url: "/sd-portal-user-menu-content"

I’ve built a form that accepts data for new items on the menu action. However, I’m looking for a way to add these new menu action items dynamically and automatically when they are added from the form.

I’m considering storing the dynamic data (i.e., new menu items) in an Atlassian’s product storage, and then fetching this data at runtime to determine what should be displayed.

Has anyone implemented something similar or could provide some guidance on how to achieve this? Any help would be greatly appreciated!

Thank you!