Converting Old Workflows to JavaScript
Prior to YouTrack 2017.2, workflows were written in a domain-specific language in an external YouTrack Workflow Editor. In YouTrack 2018.3, we will require that all new workflows are written in JavaScript.
We will continue to support older workflows that were written in the external editor through the first YouTrack release in 2019. After that point in time, we will only support workflows in JavaScript.
Convert Workflows Manually
To ensure that your old workflows work exactly as they did before, we recommend that you rewrite them yourself in JavaScript. Use the information that is provided in this section of the documentation to learn how to manipulate issues in this programming language.
If you're not familiar with JavaScript, start with our Workflow Tutorial.
If you're an experienced developer, jump straight into our JavaScript Workflow Reference and the YouTrack Workflow API.
The main advantage of rewriting your own workflows is that you can increase your knowledge and discover new applications for workflows in your projects. We've added new methods to JavaScript workflows that give you even greater control over when and how you can update issues.
Convert Workflows Automatically
For those without the time or patience to rewrite their workflows from scratch, we offer a web-based tool for converting old workflows.
To convert an old workflow to JavaScript:
In the Core Features section of the Administration menu, select Workflows.
Select one or more workflows from the list. To export multiple workflows, your browser must allow pop-ups for YouTrack.
- Click the Export button in the toolbar.
The selected workflows are exported from the server and downloaded to your local directory as ZIP archive.
Open the JetBrains YouTrack Workflow Converter.
Click the Browse button and select a ZIP archive that you exported from YouTrack.
- Click the Convert button.
The workflow converter unpacks the archive and converts the workflow to JavaScript. The conversion job status is shown as WAITING.
- Click the Download JS workflow link.
The converted workflow workflow downloads to your local directory as ZIP archive.
Return to the Workflows page in YouTrack.
- Click the Import workflow button in the header, then select the ZIP archive that contains the converted workflow.
The converted workflow is imported into YouTrack.
The conversion scripts are designed to generate valid workflows in JavaScript, but will never be as concise and readable as code that was written by a human. Once you have imported your converted workflows, you can open the scripts in the built-in workflow editor and use the code inspection tool to optimize them.
We also strongly recommend that you attach converted workflows to a test project and verify that they work as expected before using them in a live project.
Workflow Support
Whether you rewrite your workflows manually or use the automated converter, we're here to help make sure your new workflows behave exactly as expected. If you're struggling with a workflow that isn't doing what you want it to, reach out.
Join our YouTrack Workflow Community in Slack. Here, you can interact directly with our developers and learn from other users who support their own use cases with workflows.
Submit a support request. Our support engineers are workflow-savvy and can help you sort out any problem you encounter.