User selector field in custom bitbucket plugin

I’m writing settings page for my plugin and use SOY templates. Now I want to add filed with multiple users selector (like reviewers selector in default reviewers page).

Can someone explain (link, example - any help) how can I do same field? I tried select2 component, but do not understand, how can I provide current users available for current repository.
I tried to copy html from inspector - of course not working… :smiley:

I found component bitbucket.component.branchSelector.field - it work’s fine with just 4 lines! But can’t find some for users.

Example for branchSelector
{call bitbucket.component.branchSelector.field}
    {param id: 'test-selector' /}
    {param labelText: 'Branch' /}


1 Like