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
3 comments
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.

Hey Sergey,

I find the Workflow Builder more convenient than developing a JS-based workflow and I think it would be great if the builder had this option. The search query in YouTrack can search for the current sprint in the agile board.

Best regards

Jörg

0

Hello Jörg,

sure, I totally understand that it's more convenient to do via a constructor. However, at the same time we only want it to support a specific set of simpler automations so that the workflow constructor remains clear and concise. For more advanced options, there's always a JavaScript workflow engine, which for some is less convenient but offers more possibilities. 

0

Please sign in to leave a comment.