You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I am trying to restrict component list field based on Product field, using example in here
Any idea why its not working?
If product field = Infinity Fabric
List only "App Viewer" component
import com.atlassian.jira.component.ComponentAccessor
static com.atlassian.jira.issue.IssueFieldConstants.*
def productField = getFieldById(getFieldChanged())
def selectedOption = productField.getValue() as String
if (selectedOption == "Infinity Fabric") {
def constantsManager = ComponentAccessor.constantsManager
def allowedComponents = constantsManager.components.findAll {
it.name in ["App Viewer"]
}
getFieldById(COMPONENTS).setFieldOptions(allowedComponents)
}
G’day everyone! Super exciting news coming from the Marketplace. We have now fully rolled out the ability for end-users to submit app requests to admins directly from within the product! No longer ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events