Create enum custom field via REST API
Answered
I can't figure out the missing step to link a bundle to a custom field. I successfully created the field with "PUT /rest/admin/customfield/field/{customFieldName}?{typeName}&{isPrivate}&{defaultVisibility}&{autoAttached}" I then successfully created a new bundle with "PUT /rest/admin/customfield/bundle" Passing in XML content. I used the same name for the bundle as the new field thinking that was how to link them. I can see the field in the field's list, and I can click the "Create new set" button. Also, the bundle exists, as in I can't create it again, but it's not linked to the field.
Please sign in to leave a comment.
Hello Chenke, sorry for the delay.
You can link a bundle with a project field using this method (see the sample): https://www.jetbrains.com/help/youtrack/standalone/PUT-Project-Custom-Field.html
Please let us know if you have any further questions, we'll be happy to help.
Hi Liubov Dievskaia,
are the Put Project custom field commands available in the new API? - or do we continue to use the old API for these features.
I want to add 3 new custom fields to all the projects we have in our standalone platform.
Thanks,
James
Hi James,
Sorry for the delay. Sure, you can, please refer to https://www.jetbrains.com/help/youtrack/standalone/api-admin-custom-field-settings.html#post-admin-customFieldSettings-customFields.
Hope it helps.