Search code examples
github

How to filter issues on GitHub by issue id?


I need to filter issues by id. For instance, I have #1, #2, #3, #4 issues, and I need to show only 2nd and 3rd issues (#2, #3). Is it possible?


Solution

  • GitHub provides many ways to search for issues, but no way directly to filter by a list of numbers. That's probably because in most cases it doesn't make much sense.

    Instead of trying to see just issues #2 and #3, ask yourself what those issues have in common. Why are you trying to see them together, and hide the others? The answer to this question should point you in the right direction.

    For example,

    • if the answer is "they are both assigned to the same person", search by assignee:

      assignee:Alex
      
    • if the answer is "they are both labelled as important bugs", search by label:

      label:bug label:important
      

    There are many other ways that you can search. Finding the commonalities between the issues is the key to effective searching.

    If those two issues have something else in common that isn't yet reflected in the issue tracker, you can always add a label to them and then search by label as above.