Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to handle with GitFlow and Subtasks

As a JIRA and GitFlow user, I'm experiencing some issues I'd like to know how to solve them.

With Jira, you can have several kind of Issues(https://confluence.atlassian.com/display/JIRA/What+is+an+Issue) to solve.

If you've to perform a:

  • LinealTask, it's easy to find out that you've to create a new Feature with GitFlow. And when you're done with it, finish the feature.
  • Task, task is normally something "bigger" in terms of difficulty and time expending. So to handle better and optimize resources, the best idea is to split the task in subtasks (https://confluence.atlassian.com/display/JIRA/Creating+a+Sub-Task). However, what I am doing ATM is creating a new feature for every subtask. And as soon as I've finished a subtask, I finish the feature. However, I'm sure this is wrong. A feature should be finished when something is "totally" finished. And a subtask, is just a part of a Feature. Also note that when a feature is finished, it's merged to the main branch.

So my question is about what I previously mentioned above.

How should I use git-flow for SubTasks? Is there any way to create a Feature with Sub-Features?

Note that to handle all those branches changes and modifications, I'm using SourceTree.

I've thought about creating a new branch for every Task and then features for this branch, but that's not good, because branches should be something more global, and not task-specific; like "Develop", "Master", etc.

Any tips or questions are welcome.

Thanks.

like image 540
Reinherd Avatar asked Mar 21 '23 20:03

Reinherd


1 Answers

JIRA uses a git-flow derived from git-flow nvie which does not support creating features from branches other than develop.

JIRA would have to implement git-flow AVH Edition in order to create a feature from any branch.

disclaimer: I'm the maintainer of git-flow AVH Edition.

like image 84
Peter van der Does Avatar answered Mar 23 '23 10:03

Peter van der Does