Automatically add new subtask to Gantt if parent task is in Gantt?

Hi !

I'm currently trying to set up a Gantt for my team, and would like to know if there is any way we could automate the addition of new ticket on the Gantt chart.

To give a more in depth exemple, as a PO I create Epics/User Stories, then later in the process our tech team will create subtasks linked to these User Stories/Epics.
When I'm done with my Epic & US creation, I manually add them to the Gantt to have a first view of the project.

Currently when a tech create a subtask, I need to manually add it to my Gantt.
I am looking for a way that these linked sub task would be added automatically to the Gantt.
Is that something possible ? Maybe through a workflow ? 

A rule like : each new subtask of an epic present in Gantt is automatically added to Gantt.

This would also help accomodate when new unplanned subtask appears during development so they can be easily included into Gantt.

Thank you for your help,

Marion 

0
1 comment
Official comment

Hi Marion,

I'm Sergey from the YouTrack team. Thanks for reaching out!

Yes, it's definitely possible to automate adding new subtasks to your Gantt chart. You can achieve this using our workflow feature.

With workflows, you can set up rules to automatically add issues to a Gantt chart if they meet your specific criteria. To add an issue to a Gantt chart using a workflow, you would typically use the Issue.applyCommand() or Gantt.AddIssue() methods.

One important detail to be aware of is that, currently, a workflow cannot check if a specific issue is already added to a Gantt chart. Please keep this in mind if your workflow logic relies on such a check. The good news is that this functionality has been developed and is planned for release in YouTrack 2025.2. If this feature is critical for you, feel free to follow the public issue JT-86023. We'll update it once it's released. To do so, sign in to JetBrains YouTrack and click the thumbs-up icon.

Please sign in to leave a comment.