Attachments is not working when create new issue using REST API

I am using Postman to create new issue, but attachments not working. Summary and description working normally.

Please see attach images below

 

Please tell me what is wrong ?

 

Thanks & Best Regards.

Luu

0
1 comment
Official comment

Hello Luu, I'm very sorry for the delay.

Unfortunately, it's not possible to add attachments to an issue right when you're creating it via REST. You need to make two requests: one to create an issue and another one to add an attachment:

1) https://www.jetbrains.com/help/youtrack/incloud/resource-api-issues.html#create-Issue-method

2) https://www.jetbrains.com/help/youtrack/incloud/resource-api-issues-issueID-attachments.html#create-IssueAttachment-method

UPD: My answer concerns the new REST API. The old REST API methods are soon to be deprecated.

 

Let me know if you have any questions, I'll be happy to help.

Please sign in to leave a comment.