Unable to create issues with project custom fields via REST API

Answered

How to push project custom field data in youtrack via REST API? (we have 80+custom fields in our youtrack instance)

We are trying to create issues from salesforce into youtrack by using below API
https://www.jetbrains.com/help/youtrack/standalone/7.0/Create-New-Issue.html

We have created custom field “sfID” under project in youtrack (As we cannot create custom fields on issues). Now I want to populate data in this field.

For e.g (By using webservice I want to populate data like this)
Issue 1, project = ABC having sfID = AAA

Issue 2, project = ABC having sfID = BBB

0
3 comments
Official comment

Hello Mail, thank you for your question! If you're creating an issue using our REST API, you can't create it with any values of your custom fields. You need to apply a command via REST API after issue creation and update required fields in that command: https://www.jetbrains.com/help/youtrack/incloud/7.0/Apply-Command-to-an-Issue.html

You can also take a look at our Import REST API, it could be helpful with your use case: https://www.jetbrains.com/help/youtrack/incloud/7.0/Import-REST-API.html

Let me know if you have any further questions, thank you.

Avatar
Permanently deleted user
0
Avatar
Permanently deleted user

Hi Mali, how did you retrieve the newly created issue ID to apply the command??

0

Please sign in to leave a comment.