export async function getSuggestedValues()

in src/getSuggestedValues.ts [3:12]


export async function getSuggestedValues(): Promise<string[]> {
    const inputs: IDictionaryStringTo<string> = VSS.getConfiguration().witInputs;
    const valuesString: string = inputs.Values;
    if (valuesString) {
        return valuesString.split(";").filter((v) => !!v);
    }
    // if the values input were not specified as an input, get the suggested values for the field.
    const service = await WorkItemFormService.getService();
    return await service.getAllowedFieldValues(VSS.getConfiguration().witInputs.FieldName) as string[];
}