Links import changes issue "updated" date

I have a problem with YouTrack import API. I've wrote a program to transfer issues from a old bugtracker (ClearQuest). Importing issues and attaches works fine, but the last step of import, transferring a link states, set a issues "updated" date to now (only for issues with links, of course). It's not a "show-stopper" problem, in the worst case I can make a import on a local computer and change system time before every link import :-]] , but may be someone can give a advice how to do it in a less complex way?

I use YouTrack version 3.0.1 and latest python API from http://www.jetbrains.com/youtrack/tools/index.html, links import is made via Connection.importLinks() call.

I've try to cheat using workflow editor (stateless rule with somethink like "issue.updated = issue.updated.oldValue" in rule body) - it gives nothing... I can change this way a "created" date, but not "updated" (BTW, a possibility to change "created" looks like a bug).

5 comments
Comment actions Permalink

Hello, Andrey!


I think that there is no ability to change update date for issue. Update date shouldn't be reset during issues import, so I've created an issue about that:
http://youtrack.jetbrains.net/issue/JT-10384

Also, ability to change "created" date from WF is a bug to, so this is corresponding issue

http://youtrack.jetbrains.net/issue/JT-10383

If you have any other problems with python library -- feel free to ask!

0
Comment actions Permalink

Thanks!

About python API, I've forgotten in previos message... I can't find a method to import a attach and made my own "importAttachment" based on Connection.createAttachment code. Is there really no such a method in API?

0
Comment actions Permalink

Connection.createAttachment really imports it, so after running this method, attachmnet should be imported.

0
Comment actions Permalink

Yes, but " /issue/{issue}/attachment" REST call, used in createAttachment, changes a issue "updated" field. The same code with "/import/{issue}/attachment" - do not.

0
Comment actions Permalink

Sorry, I didn't notice that.. then you're right, there is no such method in our Python library yet.

0

Please sign in to leave a comment.