Importing from FogBugz to YouTrack
I am looking to import all of our data from FogBugz to YouTrack, but all the information I am finding on this is either several years old or the JetBrains links to the information no longer exist.
I know I will need to do a Custom Script for the import. But with no significant documentation on custom script imports, I am also at a loss. Any help or information regarding either would be greatly appreciated.
I appreciate any help provided.
Please sign in to leave a comment.
Hi!
I'm Sergey from the YouTrack team.
Thank you for contacting us. I'm happy to help you.
As of now, there's no built-in import option from FogBugz, unfortunately. As you correctly noticed, one of the solutions is to create a custom import script if you have some programming knowledge. The detailed documentation, including entity descriptions and a demo client, is available on our dev portal: https://www.jetbrains.com/help/youtrack/devportal/youtrack-import-scripts.html. See the sidebar section for more details.
Alternatively, if you can import data into a spreadsheet (CSV, XLSX, etc), you can import it in YouTrack via our Google Sheets import.
Hello Sergey,
I have looked at the links you gave me and looked at the information, which led to me the different entities that you can import from previous issue tracking software. When I looked at the YouTrack Import API in the case of "Issue", I noticed that were fields, history, id, and key properties. In this situation, is YouTrack just taking all the fields that FogBugz uses as it's fields? I also noticed on some other entities, such as "User", that there were only several properties, while the equivalent in FogBugz has several times more fields.
I have been trying to find some kind of data dictionary, would you say that the YouTrack Import API is the closest thing you have to a data dictionary.
I appreciate any help provided.
Hello James.
YouTrack and FogBugz are different issue trackers and hence can have different data present for different entities. Additionally, not all the data can be imported via the import API. All the supported entities and their details are outlined in the provided documentation. It also includes a demo client with general descriptions on how to work with import scripts. There's no other technical documentation, I'm afraid.
If you have any specific questions about the import, please feel free to ask.
Hello Sergey,
I am looking at the scripts to come up with a culmination that would work for FogBugz, but I am having to pick and choose from the other import scripts. The question I have is there any documentation or tutorials on how to test the import scripts without having to keep doing an import every time only to delete the project and start all over again.
I am currently using WebStorm to work on the JS import scripts
Any help provided is appreciated.
Hello James!
Unfortunately, this is currently the only way to do it. We have a debugger integration, but it currently works for workflows (automation scripts, but not for the import) only. Depending on which import methods you test, though, you don't have to remove the project all the time, as you can just continue the import.
Hello Sergey,
I do have a question regarding the APIs and the import scripts. There are three APIs in the documentation, the YouTrack REST API, the YouTrack Import API, and the HUB REST API.
The question is, is the YouTrack Import API the only one that works with Import Scripts. I ask because I have noticed that the REST API has a lot more fields available than the Import API.
As always any help is appreciated.
Hello!
In the import scripts, you get data by making http requests, but you can't use the REST API to post data. Data is processed via your scripts and posted by the underlying import engine. If you want to use the REST API to post data, then you need some external service (i.e., not in YouTrack) that would process data and post it using the YouTrack API.
Hello Sergey,
Is there any way to debug the import scripts in the web-based script editor. I see in some of the scripts, they mention a console.log, but I am unaware where this log file is or how to run this from a console.
Currently the only way I am finding out issues is by putting throws in the code.
As always any help is appreciated.
Hello James!
Indeed, you can add basic JavaScript logs to the scripts. Yet, these logs' outputs appear in the applications' log files (specifically, import.log* files). You can download them on the import page after launching the import or just access them on your server if you use YouTrack Server. They are updated in real time, so you can monitor them while performing the import itself.