REST API: How to add comments to issue with date in the past

Hi,

Ive generated the java code from application.wadl. Im able to autenthicate and create issue.

Now i was trying to attach comment to the created issue with a date in the past. Is there any way of doing this?

Ive use the POST /issue/{issue}/execute to create a comment

Thanks in advance

Jorge Costa
4 comments
Comment actions Permalink
Hello Jorge,
Correct path would be /issue/execute/{issue}?comment=comment_text

Best regards,
  Alexander
0
Comment actions Permalink
Hi,

Thanks for the reply, my bad, i think. At least comments are being created in YouYTrack so im happy with that.

My question about the date in past still remains?

BR,
JC
0
Comment actions Permalink
Hi Jorge,

What is your usecase? Why do you need add comments with date in the past?
Maybe, it's more suitable for you to use issues import. Here is documentation http://confluence.jetbrains.net/display/YTD4/Import+Issues
0
Comment actions Permalink
Im trying to import issues from TestTrack, first i tried with import with the csv but the scripts are lacking this feature also.

However i want to extend the import, and provide a way of clone the issues from TestTrack to YouTrack and i wanted to do it all in one place. Im using the Java wadl generated code but not able to find any function that does this.

In summary i want to do it all with the java wadl. Not sure if there is a workaround
0

Please sign in to leave a comment.