in src/components/api/api__helpdesk.ts [15:63]
async getForm(formId: string): Promise<FeedbackForm> {
const queryString = toField({
form: [
{
blocks: [
'$type',
'id',
'description',
'ordinal',
'required',
'periodFieldPattern',
'text',
{
projectField: [
'$type',
'id',
'canBeEmpty',
'emptyFieldText',
'bundle(id)',
{
field: ['id', 'localizedName', 'name', 'fieldType(isMultiValue,valueType)'],
},
{
defaultValues: ['id', 'localizedName', 'name'],
},
],
},
],
},
'confirmationText',
'errors',
'id',
'isDefault',
'name',
{parent: {project: ['id', 'ringId', 'restricted']}},
'title',
'useCaptcha',
'captchaPublicKey',
'uiTheme',
'uuid',
],
}).toString();
const response = await this.makeAuthorizedRequest(
`${this.youTrackUrl}/api/feedbackForms/${formId}?fields=${queryString}`,
'GET'
);
return response.form;
}