Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Support issue dependencies #210

Open

Description

@garfieldnate

Allow the creation of dependencies between issues, e.g. issue 3 requires the completion of issue 1 before work on it can begin, etc. I often find myself hesitant to submit any issues that can't be fulfilled for a long time because I don't have a direct way of tracking dependencies. I think that this feature would make it easier to manage projects here.

Currently dependencies like this can be done by making a separate milestone for each issue with dependencies and adding the relevant issues to that, but that is clumsy.

Basic functionality would just be the display of dependencies or reverse dependencies on an issue page, but the ability to make a graph of some kind would be quite nice.

Activity

  1. captn3m0 commented on Jun 13, 2014

    @captn3m0

    I think this would create an unnecessary complication, and make the interface much more complex. Zach once gave an example of a Redmine issue creation page vs GitHub's in one of his talks:

    Redmine

    vs

    GitHub

    From the talk http://zachholman.com/talk/how-github-uses-github-to-build-github/

  2. garfieldnate commented on Jun 13, 2014

    @garfieldnate
    Author

    Hmm, yes I think they were going for minimalistic and it is very easy to look at compared with the alternative. Perhaps this would be better done by another tool through the GitHub API.
    Then again, if it were simply parsed out of the description then it would not complicate the UI.
    "depends on: ..."

  3. Mithgol commented on Jul 1, 2014

    @Mithgol

    I guess you could do it with the current GitHub already. Just write “depends on: …” and then visit all the dependencies and mention your new issue. The mentions are then become displayed on that new issue's page, including the status (open, closed, proposed, merged) of each. I know this trick isn't automated, but for a couple of dependencies even doing it manually won't hurt too much.

  4. mhulse commented on Jul 1, 2014

    @mhulse

    I guess you could do it with the current GitHub already. Just write “depends on: …” and then visit all the dependencies and mention your new issue.

    Sometimes I'll create a "master" checklist issue that points to all the dependent issues. Example:

    The above, in combination with milestones, works pretty good.

    Having just tested, as I haven't tried this before, milestones work with checklists too:

    screen shot 2014-07-01 at 9 49 37 am

  5. bartlettroscoe commented on May 4, 2016

    @bartlettroscoe

    Just like Trac, it would be nice if a project could decide if it wanted to augment basic GitHub Issues to support more features like dependency tracking. That way, you can have your cake and eat it too (or take as much cake as you want and eat as much as you want).

    For interactions with open-source users, the simplicity of GitHub Issues is great. But for serious project tracking, GitHub Issues are majorly lacking.

  6. aspiers commented on Sep 22, 2016

    @aspiers
    Collaborator

    I think this would create an unnecessary complication, and make the interface much more complex.

    Sorry, but this "dumb everything down" attitude really annoys me, because it makes the patronising assumption that I'm not capable of dealing with the increased complexity (which, let's face it, would be very small in this case) and as a result I'm left with a crippled tool which doesn't properly support my development workflows. If you really believe that minimalism and simplicity should trump functionality then I suggest you go and buy a MacBook Wheel.

  7. ggeorgiev commented on Dec 7, 2016

    @ggeorgiev

    A lot of smart people say: "Everything should be made as simple as possible".
    The geniuses say: “Everything should be made as simple as possible, but no simpler.”

    Lacking basic important functionality is not simple - it is simpler.

  8. vphantom commented on Jul 19, 2017

    @vphantom

    My main use for dependencies is to get a clear TODO: I want a way to see issues which don't depend on any other open one, so I can easily focus on leaves and work my way up the tree. Having everything at the same level doesn't scale very well.

  9. kaspar030 commented on Oct 6, 2017

    @kaspar030

    Our project (>150 contributors) is quite spread over the world, and all but the simplest PRs/issues have some dependencies. Currently we're using "Depends in X" or "Needed by Y" in the comments or description, but that is usually out of date and doesn't scale.

    There's a bunch of external tools (codetree, zenhub) which offer this feature, and IMO it is the main selling point of those. Unfortunately, apart from requesting full access to all your public and private repositories, they're another site, another interface, ... and not free.

    Having this integrated into github would be awesome.

  10. ad-m commented on Oct 21, 2017

    @ad-m

    I do not understand why this change can not be made. If too complex the interface - you can make the functionality optional. Just as you can disable "Issues", "Wiki", "Projects" at both organization level and individual repositories. The same can be done with "Dependency tracking".

    zaznaczenie_1098
    zaznaczenie_1099

  11. ad-m commented on Oct 21, 2017

    @ad-m

    Is there any bot to emulate that by comment commands?

  12. markcellus commented on Oct 23, 2017

    @markcellus

    I do not understand the impatience around this request. It seems that this request is essentially asking Github to be a project management tool like JIRA. Dependency management of issues is not as easy as everyone makes it seem in this thread.

    Adding dependency chains to any system requires more than just adding a "link a dependency" button to Github issues and a few new checkboxes to the settings page. It needs to support nested dependency trees, changing and rearranging of dependencies, handling possible circular dependencies, resolving broken dependency chains, etc

    Doing a feature like this is less about "complicating the UI" and more about making sure that it is full-fledged enough to actually be useful. But at that point, aren't we just turning Github into JIRA?

  13. aspiers commented on Oct 23, 2017

    @aspiers
    Collaborator

    I do not understand the impatience around this request.

    Maybe you don't need dependency management as much as other people. That's totally fine. It doesn't make their need any lesser, however :-)

    It seems that this request is essentially asking Github to be a project management tool like JIRA.

    No, I think you really misunderstood this request - it's nothing like that. Let's recall the original request:

    Basic functionality would just be the display of dependencies or reverse dependencies on an issue page, but the ability to make a graph of some kind would be quite nice.

    That is light years away from a description of JIRA.

    Dependency management of issues is not as easy as everyone makes it seem in this thread.

    Sorry, but I disagree.

    Adding dependency chains to any system requires more than just adding a "link a dependency" button to Github issues and a few new checkboxes to the settings page. It needs to support nested dependency trees, changing and rearranging of dependencies, handling possible circular dependencies, resolving broken dependency chains, etc

    No it doesn't. Sure, those things would be nice, but they can come later (if ever) - there's no reason why this couldn't be developed incrementally, one sensibly small step at a time. That's how all decent software is built.

    Doing a feature like this is less about "complicating the UI" and more about making sure that it is full-fledged enough to actually be useful.

    I disagree. It would be useful even if all it did was model bi-directional links between issues. Any subsequent sophistication added would incrementally increase the usefulness.

    But at that point, aren't we just turning Github into JIRA?

    No. JIRA is a completely different beast. (And even if it developed more features similar to JIRA, that wouldn't necessarily be a bad thing.)

    In summary: please don't throw the baby out with the bathwater.

  14. markcellus commented on Oct 23, 2017

    @markcellus

    Please do not put words in my mouth. I am not saying the feature isn't needed and shouldn't be implemented, so I am not throwing any baby out of water. What I am saying though is that this type of feature takes a while to get started on so it's good to be patient.

    Obviously, you and I disagree on quite a bit, because I totally disagree with most of what you said. You are right in the sense that every piece of software needs to start somewhere, but planning for scalability must come first. Refusing to do this is exactly how bad software starts. You cannot just write code and push things into production without a good foundational plan and prioritization for that code.

  15. 35 remaining items

  16. added
    priority
    on May 30, 2020
  17. added a commit that references this issue on Mar 4, 2021
  18. added a commit that references this issue on Mar 5, 2021
  19. voronin-de commented on May 14, 2021

    @voronin-de

    So... I cannot have any sort of dependency between issues? I currently have an issue, where I'd like to state, that it's being blocked by another issue, which isn't resolved yet.
    Of course I could just write a comment - which is in fact, what I'll be doing so. But seeing as GitHub is pretty big, I'd have thought this simple feature, which nearly every other similar product has (at least GitLab and JIRA), is already implemented - except apparently it's not.

    No big deal really, because I wouldn't use GitHub for planning and issue tracking in the first place, but it is not my decision, so I am trying to have to workaround less - which brings me back to the question (since stuff has been committed): is there such a feature and I am just too stupid to find it - or is GitHub being simpler than simple?

  20. jerrygreen commented on May 14, 2021

    @jerrygreen

    @voronin-de of course it's a simple feature, pretty much as simple as any of these features:

    toomuchfeatures

  21. Levi-Lesches commented on May 14, 2021

    @Levi-Lesches
    Contributor

    I created a solution for this, if anyone is looking for one:

    https://github.com/marketplace/actions/blocking-issues

    It's real value comes when you use it to mark PRs as dependent on issues, but it can be used for issue -> issue as well. (In my project, I just get started on a PR anyway and mark it as blocked by the original issue.) Just add opened, edited to the issues trigger in the blocking-issues.yml in the link above.

    Here's what it looks like:

    image

    If anyone feels a feature is missing, let me know by opening an issue on the repo. I made it for my own personal project so it might not have everything you're looking for, but I'm happy to add it.

  22. voronin-de commented on May 14, 2021

    @voronin-de

    If anyone feels a feature is missing, let me know by opening an issue on the repo. I made it for my own personal project so it might not have everything you're looking for, but I'm happy to add it.

    Thank you, wow 😮 ! Aren't these actions for the Workflows one creates? I'd love to have a way of marking one issue from the issue tracker as "blocked by" or "blocking" another issue from the tracker. Would this action help me there? And - I beg your pardon already - if it does: how do I make it available in the (private) repository?

  23. Levi-Lesches commented on May 14, 2021

    @Levi-Lesches
    Contributor

    Aren't these actions for the Workflows one creates?

    Yep, GitHub actions can also be written in JavaScript for more advanced functionality, which is what I did here.

    I'd love to have a way of marking one issue from the issue tracker as "blocked by" or "blocking" another issue from the tracker. Would this action help me there?

    For issues that are blocked, it creates a comment showing all the issues that are blocking it as well as which ones are closed/still opened. It also applies a label called blocked to the issue/PR. If it's a PR, the action will fail, which means GitHub will show a big X next to the merge button and can be configured to not allow merging until all the blocking issues are closed.

    Currently, there is no behavior for issues that are blocking other issues. Leave an issue on the repo if you use this action and you'd like to have it and I'll put it in there (along with any other suggestions you may have).

    how do I make it available in the (private) repository?

    I haven't tested it in private repositories, but I don't foresee any obvious issues. I'll test it though EDIT: Can confirm, it works on private repositories as well.

  24. Levi-Lesches commented on May 14, 2021

    @Levi-Lesches
    Contributor

    Also, I would encourage everyone on this repository to try to build their own actions. GitHub actions are like IDE plugins -- the IDE can't possibly have everything, so people make the things they want and share it with others, who get to choose which plugins are best for them. Odds are GitHub is not going to adopt most of the features on this repository, simply because of the costs, implementation difficulty, or if it's not suitable for the majority of their users.

    But that doesn't mean you should stop wanting them! Build them yourself, or even better, search the GitHub Marketplace for an app or an action that does what you want. In most cases, if there isn't one already there that fits your needs, you can build an action by combining other actions together. For example, Labeler and PR Linter can be combined to verify PR titles and leave a label like invalid title if it's not in your chosen format. You are the open source community -- get creative!

  25. dword-design commented on May 15, 2021

    @dword-design

    @Levi-Lesches Looks great! I actually also want this feature and kinda manually use it by curating "Blocking" and "Blocked by" bullet lists and adding/removing "blocked" and "blocking" labels. An automatic (or semi-automatic) solution would be better. I'll have a look at your action.

    What I was asking myself: Does it also work between repositories? So can an issue block an issue from another repo?

  26. Levi-Lesches commented on May 16, 2021

    @Levi-Lesches
    Contributor

    Does it also work between repositories? So can an issue block an issue from another repo?

    Hm, didn't think about that while implementing. The way it works is it looks for Blocked by #X, #Y, #Z and looks up those issue/PR numbers in the current repo, so no, it wouldn't work between repos. Also, more fundamentally, the bot updates when issues are closed, so it would have no way of being triggered if they're on another repo. Theoretically, I could add in cross-repo support, but then the action would have to update on a schedule instead of on an event.

    Leave an issue on the bot's repo if you need this and I can take a crack at it.

  27. dword-design commented on May 17, 2021

    @dword-design

    @Levi-Lesches Alright I'll test it soon and maybe create an issue 👍.

  28. dword-design commented on May 17, 2021

    @dword-design

    I did some quick research and thought I might update you on other options:

    • dependent-issues action looks pretty nice, it's a different approach than @Levi-Lesches by looking into comments for certain keywords. Also supports dependencies between repos. I guess pick the one that suites your use case most.
    • ZenHub supports issue dependencies.
    • CodeTree supports issue dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Transferringcross referencingenhancementissuesparitypriorityproject managementtask-listworkflow

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions