Unable to create issue with project custom fields via REST API due to custom field being required
We have several custom fields that are required when creating a new issue, but are unable to complete an integration task due to the fact that we can't send custom fields via the API to the create method, yet we get an error when attempting to create due to the required field(s).
Please sign in to leave a comment.
Hi Nicole, I'm very sorry for the delayed response.
Unfortunately, there isn't a method which would create a new issue with some custom fields values. Please feel free to file a feature request into our tracker: https://youtrack.jetbrains.com/issues/JT
The only thing we can suggest in this situation is to create some default values so that new issues have those default values when they're created.
Please let us know if you have any further questions, we'll be happy to help.
What's the current status? As far as I can see, this is now possible: https://www.jetbrains.com/help/youtrack/devportal/api-howto-create-issue-with-fields.html#713c20bd
Hello Stephan, you're right, it wasn't possible when we had the old REST API, which is now deprecated. With the new REST API, you can create an issue via REST API and set its custom fields in one request.
If you have any questions related to the new REST API, let us know, and we'll be happy to answer.