Use case: users are using the Customer Portal to create requests. Requests have an advanced link field with a list of selectable assets.
Requirement: users should only see the assets that are associated with their organisation.
Advanced links support a JQL placeholder {currentUserOrganizations}
At the moment, it is possible to run a query based on a user, i.g.:
assignee in organizationMembers({currentUserOrganizations})
reporter in organizationMembers({currentUserOrganizations})
Configuration
Go to the configuration page of the advanced link field associated with the request type.
Select the ‘Data logic’ tab.
Add the JQL to the ‘Selectable issue’ text box, e.g.:
assignee in organizationMembers({currentUserOrganizations})
Click ‘Save’.