Create new Ticket on actual sprint with workflow editor

We use YouTrack to plan and monitor the development of our software. When the software is ready for release, a certain sequence of steps (like a flow chart) must be followed. I want to map these steps using workflows. For this purpose, a new issue is to be created when the previous issue is set to "Completed". I can realise this via the workflow builder. However, the newly created issue is created in the sprint "not planned" or stored there. However, the issue I created would have to be assigned to the current sprint. Moreover, this must not be static, but variable, so that I can reuse the created workflow.

I have not yet managed to realise this behaviour. Is this possible at all? If so, can you tell me how to realise this?

1 comment
Comment actions Permalink
Official comment

Hi! 

I'm Sergey from the YouTrack team.

As I see, you already contacted our support team with the same question a few days ago. 

this must not be static, but variable, so that I can reuse the created workflow. I have not yet managed to realise this behaviour. Is this possible at all?

The workflow constructor (builder) offers little flexibility when applying a command. For more flexibility, you should write a JavaScript-based workflow. You can use the applyCommand() method to add issues to the required sprint. It uses command syntax and you can use variables when applying it.

Please sign in to leave a comment.