Create new issue with custom fields using REST API
Hello,
Is it possible to create a new issue using REST API that contains CustomFields. We are running YouTrack 2018.4
This is what we came with so far with no luck :
{
"project":{
"id":"0-16"
},
"summary":"REST API lets you create issues!",
"description":"Let's create a new issue using YouTrack's REST API.",
"fields": [
{
"projectCustomField": {
"field": {
"name": "State",
"id": "50-3",
"$type": "jetbrains.charisma.customfields.rest.CustomField"
},
"$type": "jetbrains.charisma.customfields.complex.state.StateProjectCustomField"
},
"value": {
"name": "Submitted",
"id": "60-0",
"$type": "jetbrains.charisma.customfields.complex.state.StateBundleElement"
},
"id": "82-44",
"$type": "jetbrains.charisma.customfields.complex.state.StateIssueCustomField"
}
]
}
Thanks in advance
Regards
Please sign in to leave a comment.
Hello,
I am sorry for the delay. Please refer to this step-by-step guide: https://www.jetbrains.com/help/youtrack/standalone/api-howto-create-issue.html.
If it doesn't help, please share the full request that you send.
I also have similar problem. I am trying to use REST API to create a new issue with custom fields populated. However, it does not seem to be working.
The step-by-step guide does not cover custom fields.
You can update issue custom fields using this guide: https://www.jetbrains.com/help/youtrack/standalone/api-how-to-update-custom-fields-values.html or refer to the request YouTrack issues itself when creating a new issue with custom fields (navigate to browser console for that).
If you face any errors, please share them so I could take a look.