How to filter assets by organisation (JSM)

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.:

  1. assignee in organizationMembers({currentUserOrganizations})

  2. reporter in organizationMembers({currentUserOrganizations})

Configuration

  1. Go to the configuration page of the advanced link field associated with the request type.

  2. Select the ‘Data logic’ tab.

  3. Add the JQL to the ‘Selectable issue’ text box, e.g.:
    assignee in organizationMembers({currentUserOrganizations})

  4. Click ‘Save’.

© 2023, STAGIL