nash
nash

Reputation: 3110

VSTS how to create a new user field

I'm trying to create a new user field in VSTS similar to Assigned To. Assigned To is of type "Text (single line)" but acts like a user search box or picklist, I want this functionality in a new custom field.

From the GUI this does not seem possible as there is no option to create a user field or restrict a text field to users. The rest api documentation for fields does not mention creating fields and when I have tried to experiment with it it tells me that POST/PUT/PATCH are not supported by the method.

A multi-user field similar to what Jira can do would be great as well if possible.

Upvotes: 0

Views: 953

Answers (2)

BZ_QA
BZ_QA

Reputation: 116

Looks like the field type should be "Identity" in Azure DevOps browser version. This type is used to search for a user, and show as a drop-down list. reference

Upvotes: 1

Tingting0929
Tingting0929

Reputation: 4202

The REST API is used to get workitem filed not for creating or adding a new field. There's no such kind of REST API to do that.

For VSTS, it doesn't support to add a custom field like Assign to. The custom field doesn't support to add any workitem rules. Select "Text (single line)" type, it couldn't load that user information when you enter its username. You could vote the user voice here about your request: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/17907571-add-a-custom-field-like-assign-to

Upvotes: 1

Related Questions