Hi, I'm looking for help with Jira Forge. I need to dynamically hide certain custom fields on the 'Create Issue' screen based on specific conditions.
Hi, @Ariel Alvarez The module you need is jira:uiModifications - it hooks directly into the Global Issue Create (GIC) screen and lets you control field visibility at runtime. In your manifest, declare a jira:uiModifications module pointing to a Custom UI or UI Kit resource. Then in your code, use uiModificationsApi.onInit to grab the context (project, issue type) via view.getContext() from @forge/bridge, and call setVisible(false) on any field you want hidden based on your conditions. The getFieldById method from the API gives you a handle on specific fields, and from there you toggle visibility. One thing - this only works on the new issue create experience, not legacy screens. Also make sure your manifest includes scopes like read:jira-work and manage:jira-configuration.Atlassian document for reference:https://developer.atlassian.com/platform/forge/manifest-reference/modules/jira-ui-modifications/
It looks like you're new here. Sign in or register to get started.