microsoft / vsts-extension-multivalue-control

A work item form control which allows selection of multiple values.
MIT License
47 stars 45 forks source link

Can't use this control for project users #15

Closed vitalirybinskia closed 5 years ago

vitalirybinskia commented 7 years ago

I use on-premise TFS 2017 Update 1 and multivalue control extensions v 1.0.5.

I've created field in my WI:

<FIELD name="Multivalue Project Managers" refname="Multivalue.PM" type="String" syncnamechanges="true">
    <ALLOWEXISTINGVALUE />
    <VALIDUSER />
    <ALLOWEDVALUES expanditems="true" filteritems="excludegroups">
          <LISTITEM value="[project]\Project Valid Users" />
    </ALLOWEDVALUES>
</FIELD>
...
<Extensions>
    <Extension Id="ms-devlabs.vsts-extensions-multivalue-control" />
</Extensions>
...
<ControlContribution Label="Project Managers" Id="ms-devlabs.vsts-extensions-multivalue-control.multivalue-form-control">
    <Inputs>
        <Input Id="FieldName" Value="Multivalue.PM" />
    </Inputs>
</ControlContribution>

When i create new WI, i see "No values to select." on red background

Also please pay your attention on https://github.com/Microsoft/vsts-extension-multivalue-control/blob/master/xmldetails.md. Change please Extension Id and ControlContribution Id to the correct.

vitalirybinskia commented 7 years ago

It work only when i delete <VALIDUSER /> and change ALLOWEDVALUES to SUGGESTEDVALUES.

And then i get user names like "FirstName LastName <domain\FirstName.LastName>". It will be better to show them like "FirstName LastName" (display name) only at least when they are already selected.

I get a big list of users. When i want to scroll down the list - the control сollapses. Also it would be very helpful to have a quick search at least on the first letter.

mmanela commented 7 years ago

Thanks for the feedback. I update the docs to have the correct value. As to your issue, this is expected. We don't first class support identity fields with this control. We have a prototype to enable this (/cc @mohitbagra) but have no immediate plans yet to release that due to some technical complications.

ostreifel commented 5 years ago

Closing this because of inactivity and because there isn't anyway to implement a good user picker with the api's available to extensions