microsoft / microsoft/azure-devops-extension-sdk

is possible to make a field required using extension?

Open
#101 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
159
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Is there a way to make a field required using the SDK?
We could make the form don't allow to save the work item and put a message on top of the form based on some conditions:
this.workItemService.setError(Field '${requiredFieldFound[0].name}' cannot be empty.);

but we could not make the field itself present the indication that the information is missing, like work on the default rules like this "account name rigth side red circle:
image

Thank you in advance :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the SDK APIs around workItemService.setError and the extension documentation for field validation or required-field indicators. Done would be a clearly scoped, supported way to mark a field as required and show the missing-field indication, or a documented confirmation that the SDK does not provide it.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.