Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues pane: Sort issues in milestone by issue priority #2029

Closed
aaronadamsCA opened this issue Jul 29, 2020 · 5 comments
Closed

Issues pane: Sort issues in milestone by issue priority #2029

aaronadamsCA opened this issue Jul 29, 2020 · 5 comments

Comments

@aaronadamsCA
Copy link

I'd like the issue pane to sort my milestone issues by priority, so that they appear in the same order as on GitHub.

GitHub:

Extension:

Happy to take a crack at it myself, might just need some direction.

@chrisdias
Copy link
Member

You can define your own queries as well as modify the "My Issues" query in settings.json, using the same query syntax as on github.com (see https://docs.github.com/en/github/searching-for-information-on-github/understanding-the-search-syntax). You can do this for both Pull Requests and Issues.

    "githubIssues.queries": [
        {
            "label": "My Issues",
            "query": "is:issue is:open repo:${owner}/${repository} sort:comments-desc "
        },
        {
            "label": "Created Issues",
            "query": "author:${user} state:open repo:${owner}/${repository} sort:updated-desc"
        },
        {
            "label": "Closed Issues",
            "query": "author:${user} state:closed repo:${owner}/${repository} sort:updated-desc"
        }
   ]

Does this help?

@aaronadamsCA
Copy link
Author

I don't think so, because (unless I'm mistaken) the settings syntax isn't expressive enough to recreate the default behaviour of grouping tickets by milestone. I also don't think GitHub query syntax offers sorting by milestone priority.

I was assuming that milestone grouping was probably implementing in the extension itself, and that ordering by milestone priority (assuming the data is even available via the GitHub API) would need to go in the same place.

@alexr00
Copy link
Member

alexr00 commented Aug 10, 2020

I think you are looking for a way to group issues. If we provide a way to group them, then you can use GitHub's search syntax to sort however you want.

@alexr00
Copy link
Member

alexr00 commented Aug 10, 2020

Duplicate of #1881

@alexr00 alexr00 marked this as a duplicate of #1881 Aug 10, 2020
@alexr00 alexr00 closed this as completed Aug 10, 2020
@aaronadamsCA
Copy link
Author

Sounds good! I do still think the default query should sort by milestone priority, if possible, but if I can eventually do it myself that's good too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants