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

Start Work: Update Jira issue search request to sort by update date #3740

Open
sergeibbb opened this issue Nov 13, 2024 · 0 comments
Open

Start Work: Update Jira issue search request to sort by update date #3740

sergeibbb opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
debt Technical debt feature New feature or request
Milestone

Comments

@sergeibbb
Copy link
Member

sergeibbb commented Nov 13, 2024

This issue is a follow-up of #3621

The problem

For Jira, on the Start Work view I'm only seeing issues that I created/authored. It should show, and prioritize, issues I am assignee on, like this one for example. Instead I am seeing issues I reported even if they have no assignee.

The explanation

The mentioned issue probably is in the search result, because the current search query is:

(creator = currentUser() OR assignee = currentUser() OR comment ~ currentUser() OR summary ~ currentUser() OR description ~ currentUser())

but in the current order it doesn't appear on the first page, that's why the user doesn't see it.

The solution proposal of the solution

https://github.com/gitkraken/provider-apis-package-js/pull/194

Require issues to be ordered by update date. So the user will the recently updated items first and most likely see the issues they are interested in. Stale items will be at the bottom of the list or cut out by the query limit.

Add the following suffix to the query:

ORDER BY updated DESC

This solution is questionable, it has its advantages and disadvantages.

Advantages:

  • it's easy to do
    Disadvantages:
  • "The most recently updated issues where the user has been involved" is not the same as "the issues the user is most involved in". Probably a better solution would be somehow to order by a date of the most recent change related to the user. But there isn't a way to achieve it in JQL.
@sergeibbb sergeibbb added the feature New feature or request label Nov 13, 2024
@sergeibbb sergeibbb changed the title Update Jira issue search request to sort by update date Start Work: Update Jira issue search request to sort by update date Nov 13, 2024
@sergeibbb sergeibbb added the debt Technical debt label Nov 13, 2024
@sergeibbb sergeibbb added this to the Shortlist milestone Nov 14, 2024
@sergeibbb sergeibbb self-assigned this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Technical debt feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant