Use case: an ITSM company caters to several organisations. Users from these organisations are using the Customer Portal to create requests, e.g. hardware maintenance. Users can access a list of assets through an Advanced Link field added to the request.
Requirement: users should only see the assets 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’.