Code Monkey home page Code Monkey logo

vsts-extension-multivalue-control's Introduction

Currently only available on TFS 2017 or later and Visual Studio Team Services.

Work Item Form

Select multiple values for your fields

Control

Expand the control only when needed

Control Collapsed

Control Expanded

How to get started

Azure DevOps Services

Navigate to your work item form customization page and add a multivalue control.

Layout Customization

Edit the control so it can use the right field to store your selection and the right set of values to be displayed.

Options

Be sure to allow user inputed values if a picklisk (string) field is used to back the extension.

check the box to allow users to enter their own values

Azure DevOps Server

We recommend TFS 2017 RC2 or later when running this extension.

Learn more about how to customize the multivalue control directly on XML.

How to query

The selected values are stored in a semicolon separated format. To search for items that have a specific value use the "Contains Words" operator. If searching for multiple values, use multipe "Contains Words" clauses for that field.

Source code

The source for this extension can be found on Github - feel free to take, fork and extend.

You can also learn how to build your own custom control extension for the work item form here.

Feedback

We appreciate your feedback! Here are some ways to connect with us:

  • Add a review.
  • Report issues in GitHub.

Microsoft DevLabs is an outlet for experiments from Microsoft, experiments that represent some of the latest ideas around developer tools. Solutions in this category are designed for broad usage, and you are encouraged to use and provide feedback on them; however, these extensions are not supported nor are any commitments made as to their longevity.

vsts-extension-multivalue-control's People

Contributors

adammooreabt avatar adavidaisnoone avatar aminti avatar cschleiden avatar dependabot[bot] avatar gamontal avatar joserady avatar joshua-barclay avatar liang2zhu1 avatar madkoo avatar microsoft-github-policy-service[bot] avatar mmanela avatar mohitbagra avatar nenoloje avatar nschonni avatar obvioussean avatar ostreifel avatar pelvicsorcerer avatar ubergeekgirl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vsts-extension-multivalue-control's Issues

Using the Extension "Multivalue Control" doesn't allow for multi select to submit the ticket

I am using the extension "Multivalue Control" so that when submitting a bug the reporter can select multiple browser versions, OS's, and devices. However if they do select more than one it returns the following error: "The field 'Device' contains the value 'Desktop;Mobile' that is not in the list of supported values." And does not allow the bug to be submitted. Please Advise. Thanks!

[Question] Is it possible to integrate a scroll bar and a live search like tags?

Hello,

it is possible to integrate a scrollbar when there are to many values.
I have one hundred entries and the field where i choose the entries is very very long.
I do not mean the result field when the field is collapsed.

And it is possible to integrate a live search box. That means that i can search for entries like tags.

Best regards and many thanks for this nice extension
Robert

Control not loading any more in Internet Explorer 11

The control is not shown any more in IE 11 (... yes I know ;-))

TFS 2017 -> Build 15.117.26714.0

Error message:
DOM7011: Der Code auf dieser Seite hat die Zwischenspeicherung für das Vor- und Zurücknavigieren deaktiviert. Weitere Informationen dazu finden Sie unter: http://go.microsoft.com/fwlink/?LinkID=291337
_workitems
HTML1300: Navigation wurde ausgeführt.
_workitems
__pageload-WorkItemsView.Initialize.Start: 8.430,254ms
WIT::QueryHierarchy.Load-start: 8.534,854ms
QueryHierarchy.Load-WorkItemsView.Initialize.Complete: 8.535,854ms
QueryHierarchy.Load-WorkItemForm.Initialize.Start: 8.700,554ms
QueryHierarchy.Load-WorkItemFormBase.Initialize.Start: 8.702,154ms
QueryHierarchy.Load-WorkItemFormBase.Initialize.Complete: 8.702,554ms
QueryHierarchy.Load-WorkItemForm.Initialize.Complete: 8.703,054ms
QueryHierarchy.Load-WorkItemsView.EnsureView.Complete: 8.709,354ms
QueryHierarchy.Load-WorkItemTracking.GetProjects.Request.Start: 8.779,854ms
QueryHierarchy.Load-WorkItemTracking.GetProjects.Request.Complete: 8.803,154ms
QueryHierarchy.Load-WorkItemTracking.GetFields.Process.Start: 8.803,754ms
QueryHierarchy.Load-WorkItemTracking.GetFields.Process.Complete: 8.805,854ms
QueryHierarchy.Load-WorkItemTracking.GetTypes.Start: 8.933,154ms
QueryHierarchy.Load-WorkItemTracking.GetTypes.Request.Start: 8.936,354ms
QueryHierarchy.Load-WorkItemTracking.GetTypes.Request.Complete: 8.949,754ms
QueryHierarchy.Load-WorkItemTracking.GetConstantSets.Start: 8.950,454ms
QueryHierarchy.Load-WorkItemTracking.GetConstantSets.Request.Start: 8.959,054ms
QueryHierarchy.Load-WorkItemTracking.GetConstantSets.Request.Complete: 9.480,554ms
QueryHierarchy.Load-WorkItemTracking.GetConstantSets.Complete: 9.481,354ms
QueryHierarchy.Load-WorkItemTracking.GetTypes.Complete: 9.555,554ms
QueryHierarchy.Load-QueryHierarchy.Populate.Start: 9.625,354ms
QueryHierarchy.Load-QueryHierarchy.GetHierarchy.Request.Start: 9.629,754ms
QueryHierarchy.Load-QueryHierarchy.GetQueryFavorites.Request.Start: 9.630,554ms
QueryHierarchy.Load-QueryHierarchy.GetQueryFavorites.Request.Complete: 9.772,254ms
QueryHierarchy.Load-WorkItemForm.BindWorkItem.Start: 9.798,554ms
QueryHierarchy.Load-WorkItem.WorkItemView.CreateLayout.Start: 9.818,554ms
QueryHierarchy.Load-WorkItem.WorkItemView.CreateLayout.Complete: 10.079,154ms
QueryHierarchy.Load-WorkItem.WorkItemView.RenderLayout.CreateLabelAndTabs.Start: 10.082,254ms
QueryHierarchy.Load-WorkItem.WorkItemView.RenderLayout.CreateLabelAndTabs.Complete: 10.275,954ms
QueryHierarchy.Load-WorkItem.WorkItemView.RenderLayout.CreateControls.Start: 10.276,454ms
IdentityPicker::IdentityPicker_MruService_GetMru_Rtt-start: 10.328,354ms
QueryHierarchy.Load-WorkItem.WorkItemView.RenderLayout.CreateControls.Complete: 10.654,854ms
QueryHierarchy.Load-WorkItem.WorkItemView.RenderLayout.TabifyLayout.Start: 10.655,154ms
QueryHierarchy.Load-WorkItem.WorkItemView.RenderLayout.TabifyLayout.Complete: 10.656,054ms
QueryHierarchy.Load-WorkItem.WorkItemView.AppendElement.Start: 10.656,454ms
QueryHierarchy.Load-WorkItem.WorkItemView.AppendElement.Complete: 10.835,654ms
QueryHierarchy.Load-WorkItem.WorkItemView.Bind.Start: 10.836,354ms
QueryHierarchy.Load-WorkItem.WorkItemView.Bind.Complete: 11.090,554ms
QueryHierarchy.Load-WorkItemForm.BindWorkItem.Complete: 11.211,254ms
WIT::WorkItem.CreateOrEdit-start: 11.211,754ms
__pageload-WorkItem.New.NewFormView: 11.249,354ms
QueryHierarchy.Load-WorkItem.New.NewFormView: 11.249,554ms
IdentityPicker_MruService_GetMru_Rtt-WorkItem.New.NewFormView: 11.249,754ms
WorkItem.CreateOrEdit-WorkItem.New.NewFormView: 11.249,854ms
QueryHierarchy.Load-WorkItemTracking.GetNodes.Request.Start: 11.254,054ms
QueryHierarchy.Load-WorkItemTracking.GetLinkTypes.Request.Start: 11.281,554ms
IdentityPicker::IdentityPicker_IdentityService_GetDirectory_Rtt-start: 11.291,554ms
IdentityPicker::IdentityPicker_IdentityService_GetDirectory_Rtt-start: 11.293,854ms
Failed to shim support for sandboxed properties: SecurityError. Set "window.__vssNoSandboxShim = true" in order to bypass the shim of sandboxed properties.
Failed to shim support for sandboxed properties: SecurityError. Set "window.__vssNoSandboxShim = true" in order to bypass the shim of sandboxed properties.
Failed to shim support for sandboxed properties: SecurityError. Set "window.__vssNoSandboxShim = true" in order to bypass the shim of sandboxed properties.
Failed to shim support for sandboxed properties: SecurityError. Set "window.__vssNoSandboxShim = true" in order to bypass the shim of sandboxed properties.
QueryHierarchy.Load-WorkItemTracking.GetNodes.Request.Complete: 12.864,754ms
QueryHierarchy.Load-WorkItemTracking.GetLinkTypes.Request.Complete: 12.867,054ms
QueryHierarchy.Load-QueryHierarchy.UpdateFromData.Start: 14.449,854ms
QueryHierarchy.Load-QueryHierarchy.UpdateFromData.Complete: 14.451,454ms
QueryHierarchy.Load-QueryHierarchy.GetHierarchy.Request.Complete: 14.452,054ms
QueryHierarchy.Load-QueryHierarchy.PopulateFolderTree.Start: 14.452,754ms
QueryHierarchy.Load-QueryHierarchy.PopulateFolderTree.Complete: 14.619,854ms
QueryHierarchy.Load-QueryHierarchy.Populate.Complete: 14.620,254ms
WIT::QueryHierarchy.Load-end: 14.621,854ms
IdentityPicker::IdentityPicker_MruService_GetMru_Rtt-end: 14.737,654ms
IdentityPicker::IdentityPicker_IdentityService_GetDirectory_Rtt-end: 14.789,054ms
IdentityPicker::IdentityPicker_IdentityService_GetDirectory_Rtt-end: 14.965,754ms
No handler found on any channel for message: {"id":2,"methodName":null,"instanceId":"multivalue-form-control","instanceContext":{"user":{"id":"81934a4e-924c-4c5e-b19f-1a8ecef1e17c","name":"--replaced--","email":"--replaced--","uniqueName":"--replaced--"},"team":{"id":"201c1850-a020-4fe3-84c9-a16f0974521c","name":"Product Management"},"project":{"id":"8e122811-3229-42ed-aaa8-fc44382f166b","name":"--replaced--"},"collection":{"id":"3bb650ab-f3b3-4ffd-a107-670e472e2fcd","name":"--replaced--","uri":"--replaced--","relativeUri":"/--replaced--/"},"account":{"id":"ff9c7fa8-15e5-44c5-ba97-f3a68e1808bf","name":"Team Foundation Server","uri":"--replaced--","relativeUri":"/"},"host":{"id":"3bb650ab-f3b3-4ffd-a107-670e472e2fcd","name":"--replaced--","uri":"--replaced--","relativeUri":"/--replaced--/","hostType":4,"scheme":"https","authority":"tfs.--replaced--"}},"params":null,"jsonrpc":"2.0"}
Rejected XDM promise with no reject callbacks
[object Object]
{
[functions]: ,
proto: { },
description: ""Promise" ist undefiniert",
message: ""Promise" ist undefiniert",
number: -2146823279,
stack: "ReferenceError: "Promise" ist undefiniert
at Anonymous function (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:16375)
at e.prototype.refresh (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:18479)
at onLoaded (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:16145)
at _proxyFunctions[] (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/libs/VSS.SDK.min.js:2:6812)
at t.prototype.invokeMethod (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/libs/VSS.SDK.min.js:2:3391)
at t.prototype.onMessage (https:/"
}

Rejected XDM promise with no reject callbacks
[object Object]
{
[functions]: ,
proto: { },
description: ""Promise" ist undefiniert",
message: ""Promise" ist undefiniert",
number: -2146823279,
stack: "ReferenceError: "Promise" ist undefiniert
at Anonymous function (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:16375)
at e.prototype.refresh (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:18479)
at onLoaded (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:16145)
at _proxyFunctions[] (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/libs/VSS.SDK.min.js:2:6812)
at t.prototype.invokeMethod (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/libs/VSS.SDK.min.js:2:3391)
at t.prototype.onMessage (https:/"
}

Rejected XDM promise with no reject callbacks
[object Object]
{
[functions]: ,
proto: { },
description: ""Promise" ist undefiniert",
message: ""Promise" ist undefiniert",
number: -2146823279,
stack: "ReferenceError: "Promise" ist undefiniert
at Anonymous function (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:16375)
at e.prototype.refresh (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:18479)
at onLoaded (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:16145)
at _proxyFunctions[] (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/libs/VSS.SDK.min.js:2:6812)
at t.prototype.invokeMethod (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/libs/VSS.SDK.min.js:2:3391)
at t.prototype.onMessage (https:/"
}

Rejected XDM promise with no reject callbacks
[object Object]
{
[functions]: ,
proto: { },
description: ""Promise" ist undefiniert",
message: ""Promise" ist undefiniert",
number: -2146823279,
stack: "ReferenceError: "Promise" ist undefiniert
at Anonymous function (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:16375)
at e.prototype.refresh (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:18479)
at onLoaded (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/src/multivalue.js:21:16145)
at _proxyFunctions[] (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/libs/VSS.SDK.min.js:2:6812)
at t.prototype.invokeMethod (https://tfs.--replaced--/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/2.0.11/assetbyname/dist/libs/VSS.SDK.min.js:2:3391)
at t.prototype.onMessage (https:/"
}

Control not honouring FIELD WHEN switch

I am using the control in this format: Input Id="FieldName" Value="CEN.Program"
The field in question switches on the WHEN clause to show 2 different lists depending on another field on the form.
This control simply mashes both lists together as one set of suggested values rather than switching the lists. Am I doing something wrong?
When I use the default single select control in TFS, the lists are shown correctly.

More examples in xmldetails.md please

How to configure the input tag is not so clear:

<Input Id="FieldName" Value="RefNameOfTheField" />

What should I put as FieldName?
What about RefNameOfTheField?
Suppose I have a custom field called MyNamespace.MyField, do I put this in Id? Then what should I put as Value? FieldControl?
To specify the list of items, whether from a static list or a global list, and whether to allow existing value, still the same as previous version of TFS?

Can't use this control for project users

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.

Can't install on TFS 2018 environment

Hello!
I found this amazing extension but I've got a problem.
It seems it can't be applied to TFS 2018 update2 on-premise environment.

At first, I tried to install it through Marketplace. I clicked install button and it says Something's gone wrong.
image

Then, I downloaded ths vsix version and run it on the server and I got the message saying, this extension cannot be installed to this product.
image

The text below is the log when the install faild.
It is saying that it detects Visual Studio Professional 2017 is installed before the installation failed, so I uninstalled Visual Studio Professional 2017 from the server but it doesn't work.

Is there any way to achieve the installation on TFS 2018?

※Sorry but some lines are written in Japanese.

2018/08/31 6:19:39 - Initializing Install...
2018/08/31 6:19:39 - 拡張機能の詳細...
2018/08/31 6:19:39 - Identifier : vsts-extensions-multivalue-control
2018/08/31 6:19:39 - Name : Multivalue control
2018/08/31 6:19:39 - Author : ms-devlabs
2018/08/31 6:19:39 - Version : 1.0.19
2018/08/31 6:19:39 - Description : A work item form control which allows selection of multiple values.
2018/08/31 6:19:39 - Locale : en-US
2018/08/31 6:19:39 - MoreInfoURL :
2018/08/31 6:19:39 - InstalledByMSI : False
2018/08/31 6:19:39 - SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
2018/08/31 6:19:39 -
2018/08/31 6:19:39 - SignatureState : Unsigned
2018/08/31 6:19:39 - サポートされる製品 :
2018/08/31 6:19:39 - Microsoft.VisualStudio.Services
2018/08/31 6:19:39 - Version :
2018/08/31 6:19:39 -
2018/08/31 6:19:39 - 参照 :
2018/08/31 6:19:39 - 署名の詳細...
2018/08/31 6:19:39 - Extension is not signed.
2018/08/31 6:19:39 -
2018/08/31 6:19:39 - 適用可能な製品を検索しています...
2018/08/31 6:19:39 - 検出されたインストール済み製品 - グローバルな場所
2018/08/31 6:19:39 - 検出されたインストール済み製品 - ssms
2018/08/31 6:19:39 - 検出されたインストール済み製品 - Visual Studio Professional 2017
2018/08/31 6:19:39 - VSIXInstaller.NoApplicableSKUsException: この拡張機能は、現在インストール済みの製品にはインストールできません。
場所 VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable1& skuData) 場所 VSIXInstaller.App.Initialize(Boolean isRepairSupported) 場所 VSIXInstaller.App.Initialize() 場所 System.Threading.Tasks.Task1.InnerInvoke()
場所 System.Threading.Tasks.Task.Execute()

Required icon is not show against field

When using this field it does now show the required icon.
Example of the icon against a standard work item field.

image

The multivalue list does not show it even though it's required.

image

It does still show at the top of the work item when creating it but it should also show against the field.

image

Server: Windows Server 2016
TFS Type: On-premises
TFS Version: 2017.3

How do I install in TFS 2015?

Instructions in the readme mention changing the config for work items in TFS 2015, but I cannot figure out how to install it in 2015.

/n:TypeName

I can't figure out what TypeName is for the Product Backlog Item.

I've tried /n:PBI, /n:Product_Backlog_Item..and so on, to no avail!

Can't load the control when using multiple web fronts through load balancer

I have to web fronts, let's say web1.foo.com and web2.foo.com, they are behind a load balancer tfs.foo.com and their dns is not exposed publicly for security purpose.

When the control tries to load, it fails given this information message:

GET https://web1.foo.com/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/1.0.6/assetbyname/dist/index.html net::ERR_NAME_NOT_RESOLVED

My understanding is the Javascript code should use tfs.foo.com instead of the dns name of the machine that is currently serving the custom control's server code.

Upgrade from TFS 2015 to TFS 2018. Scroll Bar disappears when the Multi Value Control at the Bottom of the Layout

I am placing Multi value control at the bottom of the page. when the list is long i cannot scroll to the both using the bar and when i try to use the scroll bar on the work item form it self the drop down list disappears which is very annoying and we are upgrading to on Prem TFS 2018. I tested this on Chrome, IE and firefox the issue exists.

But on Microsoft Edge it works fine.

Is there a resolution for this.

image

The strings are truncated

Hello,
Thanks for the extension. Its helps a lot!
We have long strings as options for multi-select control and they look truncated from UI when we select them. Is there any way to control the control width from XML?
image
Thanks,
Alla

Extremely long delay to display the control

The control is working. I have a reasonable amount of options, i.e. around 5 options in the control, not a million.

When I open a PBI using this control, everything displays good as usual. However, this multivalue control takes a weirdly long amount of time to display... i.e. 20 seconds.

This really ruinds the UX of this control.

This happens most of the time, i.e. 90% of the time I open a PBI. Weird enough, around 10% of the PBIs I open, have this control inmediately available. I did not find any consistent pattern on which PBIs have it available and which takes weirdly long to load.

Any ideas?

Can't get proper syntax

I'm trying to implement this on a TFS 2018 Hosted XML project and I'm unable to reimport the WIT. The extension is installed in my project. When I export the WIT (custom WIT) from TFS 2018, I see the Extensions section with the multivalue control info in it and I'm able to add the Extension tag. But I'm having problems with the correct syntax for implementing it in the Control.

When I follow the instructions to insert the ControlContribution tag for the controls I want to have multivalues, I get errors on importing the WIT. Initially it was ' is unexpected token. Expecting white space.' It gives me a specific row and location, but there didn't seem to be any errors.

When I tried other methods of inserting the ControlContribution tag I would get an error that ControlContribution isn't valid for the Column section. I tried to make ControlContribution a child of the Control field, but that also threw an error.

Also there is no Type="" in the ControlContribution tag, is Type now unnecessary?

Thanks,

Getting error "not in the supported list of values"

After setting up the Multivalue control I tested it and when I choose more than one I get an error saying "The field 'Products' contains the value ' (9 names of my products) that is not in the list of supported values." The custom field is originally set up as a string picklist. I get that error when I try using just the picklist. I tried setting up it up using the individual fields like in the example but get the same error. I tried just the semicolon no spaces and semicolon with a space in between each name. I get the error both ways. I tried in both Chrom and IE 11 but got the same error. I then tried it in a different VSTS instance and it worked there. The first is my production environment that was set up in June this year. The 2nd instance is a personal instance set up several years ago. I've attached a screenshot with the error.
multivalue

Does it work with Visual Studio as well?

Does this Multi-Value control work with work items opened on Visual Studio form as well?
Ex. If I have a multi value control on User story form, which should render properly on web client, but how it will render on local machine Visual Studio.

Does it need any specific add-on to be installed on local machine to render it. Note: We are using TFS 2015 Update 3 on-premise setup.

Not able to select multiple values

multivalue control is not working at my end. I am performing the below steps:

  1. In the process template; adding a new field "ListOS" with a type "Picklist (string)".
  2. In the options selecting the "Required" checkbox"
  3. Adding the values "1", "2","3","4"
  4. Adding a multivalue custom control
  5. In the options selecting Picklist field created in step1

Using the multivalue control in workitem in VSTS
6) Creating a new workItem type "Bug"
7) Selecting multiple values from "ListOS"
8) It throws the message "The field 'ListOS' contains the value '1;2;3;4' that is not in the list of supported values."

Please help where am i going wrong?

Challenges implementing Multi-Value Control

I am struggling to get the Multi-Value control to display in the Web Page. I have done all that I have thought is needed, but it does not work.

I have attached an XML with what I have done but it does not work. I am attempting to set the Target Version Fields as a Multi-value Field.
Product Backlog Item.xml.txt

Trying to use SuggestedValues from GlobalList gives error TF201067 when loading WIT to TFS2017.2

Trying to use SuggestedValues from GlobalList gives error TF201067 when loading WIT to TFS2017.2

If I have the ListItem values for SuggestedValues under the Field definition in the WIT, it works.

However, when I move the same ListItem values under a GlobalList definition and try to use that GlobalList from the same Field definition, then WIT import fails and gives unrelated error message: "TF201067: You do not have permission to modify the work item type or field. You must have permission to modify work item types and fields in each team project where they are used. If you have the necessary permissions, your work item metadata cache may be out of date. Refresh any cached metadata and try the operation again."

Definitely, the error message is unrelated, because if I immediately move the ListItem values back to the SuggestedValues under the Field definition in the WIT, it works without issues.

It is important to be able to define the SuggestedValues as a GlobalList.

I suppose we use the latest version of the vsts-extension-multivalue-control (I did not check), because we installed it couple of days ago.

--Markus

Trying to use SuggestedValues from GlobalList gives error TF201067 when loading WIT to TFS2017.3

Trying to use SuggestedValues from GlobalList gives error TF201067 when loading WIT to TFS2017.3

If I have the ListItem values for SuggestedValues under the Field definition in the WIT, it works.

However, when I move the same ListItem values under a GlobalList definition and try to use that GlobalList from the same Field definition, then WIT import fails and gives unrelated error message: "TF201067: You do not have permission to modify the work item type or field. You must have permission to modify work item types and fields in each team project where they are used. If you have the necessary permissions, your work item metadata cache may be out of date. Refresh any cached metadata and try the operation again."

Definitely, the error message is unrelated, because if I immediately move the ListItem values back to the SuggestedValues under the Field definition in the WIT, it works without issues.

It is important to be able to define the SuggestedValues as a GlobalList.

Microsoft Visual Studio Team Foundation Server
Version 15.117.27024.0

  <FIELD name="XYZ" refname="VMS.ADLM.XYZ" type="PlainText">
    <SUGGESTEDVALUES expanditems="true">
      <LISTITEM value="XA" />
      <LISTITEM value="XB" />
      <LISTITEM value="XC" />
      <LISTITEM value="XD" />
    </SUGGESTEDVALUES>
  </FIELD>

C:\Projects\1-VMS\Non-Production\ADLM\Dev\WorkItemTypes>ImportWIT2tfs-2017sb.bat ADLMDEV Requirement.xml'
Fri 03/02/2018 9:06:23.22
The work item type import has completed.
Fri 03/02/2018 9:06:31.12

  <FIELD name="XYZ" refname="VMS.ADLM.XYZ" type="PlainText">
    <SUGGESTEDVALUES expanditems="true">
      <GLOBALLIST name="VMS.ADLM.XYZvalues" />
    </SUGGESTEDVALUES>
  </FIELD>

C:\Projects\1-VMS\Non-Production\ADLM\Dev\WorkItemTypes>ImportWIT2tfs-2017sb.bat ADLMDEV Requirement.xml
Fri 03/02/2018 9:08:20.05
TF201067: You do not have permission to modify the work item type or field. You must have permission to modify work item types and fields in each team project where they are used. If you have the necessary permissions, your work item metadata cache may be out of date. Refresh any cached metadata and try the operation again.
Fri 03/02/2018 9:08:23.07

Loading indicator keeps spinning, control not showing

Screenshot of the error:

multivalue error https

If I open the page with HTTP, the control is showing just fine. If I open the page with HTTPS, this error occurs.

This is on premise TFS 2017.

I saw in browser console there were two errors when loading vsts-extensions-multivalue-control/1.0.5/assetbyname/dist/index.html:

SEC7111: HTTPS security is compromised by http://mytfsserver/tfs/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/1.0.5/assetbyname/dist/index.html
File: Backlog%20items
SEC7111: HTTPS security is compromised by http://mytfsserver/tfs/_apis/public/gallery/publisher/ms-devlabs/extension/vsts-extensions-multivalue-control/1.0.5/assetbyname/dist/index.html
File: Backlog%20items

Required field indicator doesn't display on initial load of new work item

Product Version
TFS 2018.2
Multivalue control 2.0.20

Steps to reproduce:

  1. Create a new work item with a Multivalue control bound to a required field. (NOTE: the required indicator displays properly on the group, tab, and at the top of the work item... but not on the field label.)
    multivalue_form_load

  2. Select an item in the Multivalue control, and then click the "X" to remove the selection.
    multivalue_item_selected

  3. Now the required indicator appears next to the field label.
    multivalue_after_selection

Search the multivalue control

Hi there,
This control have autocomplete?
It's possible to search a value in the list of values?

The problem is, i'm trying to use this component to add people, and i would like to filter does values.

Thanks

Picklist (string) multiple values error "... is not in the list of supported values."

Hello,

I have added a new field of type Picklist (string) to which I have added all necessary items where the users can choose from. Next I add the multivalue control and I refer to this new field without providing Options (as said, for a Picklist this is not needed).

But from the moment that I want to create a new task (the WIT for which I added this multivalue control) and I pick let's say 2 items ABC and XYZ, the VSTS validation system complains, giving me an error like:
"The field 'Company' contains the value 'ABC;XYZ' that is not in the list of supported values."

image

On the page itself I see the two selected items with the rectangle around each item (as depicted in the documentation), but it doesn't allow me to save due to the validation error.

Kinds regards,
Vincent Verweij

vsts-extensions-multivalue-control by ms-devlabs failed to load

Hi,

On occasions the form fails to load the extension with the message "vsts-extensions-multivalue-control by ms-devlabs failed to load."
This seems to be happening randomly, what are the possible causes of this? Is there a log I can review to identify the underlying cause?

Control is not trusted

We have version 1.0.19 installed on-prem and we are getting this message in Chrome and IE:
"vsts-extensions-multivalue-control by ms-devlabs is taking longer than expected to load.Learn More about this extension, including available support options."
IE displays an additional message for a few seconds:
"Only secure content is displayed" with a button to "Show all content" and clicking the button allows the control to display and work great.
Chrome does not display any additional message boxes and the control never loads. I assume due to the same trust issue.

Is there any way to get the control recognized as secure so that my 50 users don't have to use IE and click that button?

Support for external values

Hi,

This is more a question than an issue.

We currently use the former MultiValuecontrol from CodePlex on TFS2015. We plan on moving to TFS2017 and are looking for another multivalue control based on the new extension model that would support external suggested value from an URL or else.

Could you tell me if your extension currently support that?

Thank you

Stéphane

MultiValued control pop up is not shown in Internet Explorer

Hi,
We have used multivalued control. It works fine in Google Chrome(Version 68.0.3440.106 (Official Build) (64-bit))

Bit is is not showing the pop up in Internet Explorer(V11.611.16299.0)
Can you investigate and let us know the solution. Shouldn't It work on both browsers.
Thanks in Advance.
BR,
Omprakash Limbhore

Help Text not showing

Hello,

I have the help text setup at my field level, but the control always shows the default description ("A work item form control which allows selection of multiple values.").

Is this a bug, or is there a different way to set HelpText for Contributions?

Thanks,

multivalue-control menu opens behind workitem window

Hi

I have TFS 2017 update 1 and I have installed version 1.0.5. of the control
I have a field populated with SUGGESTEDVALUES just like I used to do in TFS 2015
but the menu (after looking for it...) seems to open under the workitem window
I have tried chrome , chrome incognito window and IE ... all behave the same (under windows 10).

see attached screen capture for more details

image

image

vsts-extensions-multivalue-control by ms-devlabs failed to load

Hi I'm having an issue with this control failing to load which started a few days ago. When I check the console I see:

image

There are a number of errors specifically:

Refused to execute script from 'http://xxx.xxx.com:8080/tfs/_static/tfs/Dev15.M112.5/_scripts/TFS/min/TFS/WorkItemTracking/Services.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled

Full error list:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)
2:8080/tfs/favicon.ico Failed to load resource: the server responded with a status of 500 (Internal Server Error)
ui-icons_222222_256x240.png Failed to load resource: the server responded with a status of 500 (Internal Server Error)
:8080/tfs/favicon.ico Failed to load resource: the server responded with a status of 500 (Internal Server Error)
VM138:63 Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.
at Object.qa.getAndResetPendingTask (:69:30640)
at a.addPendingTask (:65:8471)
at D (:64:17877)
at c (:64:18398)
at d (:63:8456)
at :63:8721
at q.d.promiseDispatch (:63:2730)
at :63:1493
at MessagePort.c (:63:6156)
Services.js Failed to load resource: the server responded with a status of 500 (Internal Server Error)
index.html:1 Refused to execute script from 'http://xxx.xxx.com:8080/tfs/_static/tfs/Dev15.M112.5/_scripts/TFS/min/TFS/WorkItemTracking/Services.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
Content?bundle=vss-bundle-basejs-vLDQ_BPnMflh1yV4rhP43SsHlun31XvwYB1svh7haP9E=:37 Uncaught Error: Script error for: TFS/WorkItemTracking/Services
http://requirejs.org/docs/errors.html#scripterror
at c (Content?bundle=vss-bundle-basejs-vLDQ_BPnMflh1yV4rhP43SsHlun31XvwYB1svh7haP9E=:37)
at HTMLScriptElement.onScriptError (Content?bundle=vss-bundle-basejs-vLDQ_BPnMflh1yV4rhP43SsHlun31XvwYB1svh7haP9E=:37)
VM138:63 Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.
at Object.qa.getAndResetPendingTask (:69:30640)
at a.addPendingTask (:65:8471)
at D (:64:17877)
at c (:64:18398)
at d (:63:8456)
at :63:8721
at q.d.promiseDispatch (:63:2730)
at :63:1493
at MessagePort.c (:63:6156)
VM138:63 Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.
at Object.qa.getAndResetPendingTask (:69:30640)
at a.addPendingTask (:65:8471)
at D (:64:17877)
at c (:64:18398)
at d (:63:8456)
at :63:8721
at q.d.promiseDispatch (:63:2730)
at :63:1493
at MessagePort.c (:63:6156)

Control does not hide when READONLY and EMPTY

The control does not hide if it´s empty and set to READONLY (or set to EMTPY and READONLY explicitly) like other controls.
We are using this to show or hide specific fields of the work item, but for the multivalue control this does not work. It is shown and values can be selected but then the error "The value for field 'field name' must be empty." is printed on top of the work item.

Is this an explicit decision or just not implemented yet?

Limit of 255 char?

Hi,
I need a pretty long list in our multivalue but it seems to be a limit of 255 char.

Is it possible to change this?

MultiValue control

When selecting multiple values...get a message at top indicating that the values field contains values that are not in the list of supported values.

The field type is Picklist String. I can select a single value and it works fine but when another value is selected i get the message.

"The Element "WebLayout" has invalid child element "Extensions"

I added this extension in TFS 2017.2 (on-premise). however, when attempting to upload a WIT xml with the extensions element, Bug WIT, for example, I get an error saying the "The Element "WebLayout" has invalid child element "Extensions". List of possible elements expected: "Page, PageContribution". Is this a bug?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.