Show unlicensed users with multiusergroup

Alexander Lukashov July 22, 2021

Hi

I'm developing a custom macro and struggling with macro parameters more specifically with user pickers

So if I create a macro parameter as

var input = AJS.$("input[type='text']", paramContainer);

input.addClass("autocomplete-user");
input.attr("data-none-message", "Not found");
input.attr("data-show-unlicensed", true);

It does return unlicensed users by appending special get parameter to search api request

But the same for multi user select

var input = AJS.$("input[type='text']", paramContainer);

input.addClass('select2-input autocomplete-multiusergroup');
input.attr("data-none-message", "Not found");
input.attr("data-show-unlicensed", true);

 doesn't work, it returns only licensed users and underlying rest api call doesn't contain parameter show-unlicensed

 

I've tried to check confluence-project\confluence-core\confluence-webapp\src\main\webapp\includes\js\components\binders\autocomplete-user.js  file but it seems it doesn't know anything about autocomplete-multiusergroup it knows only about 'user', 'group', 'user-or-group'

so I'm not sure how to make autocomplete-multiusergroup return all users including unlicensed

Can somebody shed some light no this?

1 answer

0 votes
Alexander Lukashov July 27, 2021

so, nobody knows?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events