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

Cannot assign myself to an issue #357

Open
dod38fr opened this issue Aug 30, 2024 · 2 comments
Open

Cannot assign myself to an issue #357

dod38fr opened this issue Aug 30, 2024 · 2 comments

Comments

@dod38fr
Copy link

dod38fr commented Aug 30, 2024

Hi

I'm trying to assign myself to an issue, but the list of assignable users does not include my name. I get a list of possible users all beginning with 'A'.

I use JIRA in a big company with thousands of users. I can only guess that the list of assignable users is retrieved from a paginated endpoint and only the first one is downloaded.

As a consequence, I cannot assign myself to an issue.

And updating an issue fails with this error:

"JIRA_ERROR RESPONSE: "

((errorMessages . []) (errors (assignee . "expected Object containing a 'name' property")))

Could you fix this problem ?

All the best

@ahungry
Copy link
Owner

ahungry commented Sep 2, 2024

If you add a PR, I will help review/merge it 😄

@dod38fr
Copy link
Author

dod38fr commented Sep 2, 2024

Well, I've looked into it and it's a bit more complicated. The call to get the list of user is done with /user/assignable/search:

      ('getUsers
       (jiralib--rest-call-it (format "/rest/api/2/user/assignable/search?project=%s&maxResults=10000" (first params))
                              :type "GET"))

First problem, JIRA's doc mentions that maxResults is limited to 1000, not 10 000.

In any case, this is way too much to use with a drop down menu (this is probably due to Helm).
The default is 50 entries with is more reasonable.

I think this endpoint is designed to work like the WEB interface in a iterative manner:

  • first display the 50 first users in menu
  • the user enters one or more characters to narrow the search (say 'Kev')
  • the app calls again JIRA with /rest/api/2/user/assignable/search?project=%s&search=Kev
  • Jira return a list of 50 users that include 'Kev'
  • the menu is updated with this list
  • user narrow the search again by entering 'in'
  • the menu is update with all 'Kevin' of the company
  • then user can select the right Kevin

I don't know if such a modification is easy to make to jira-org.

Thoughts ?

Hope this helps

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

2 participants