Skip to content

Commit

Permalink
fix(#48): 404 error in assign user view for Jira Server instances
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-5 committed Sep 7, 2023
1 parent 014b0a9 commit 7314e00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/issues/search_issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ func (view *searchIssuesView) fetchStatuses(projectId string) []jira.IssueStatus
return ss
}

func (view *searchIssuesView) fetchUsers(projectId string) []jira.User {
us, err := view.api.FindUsers(projectId)
func (view *searchIssuesView) fetchUsers(projectKey string) []jira.User {
us, err := view.api.FindUsers(projectKey)
if err != nil {
app.Error(err.Error())
}
Expand Down
2 changes: 1 addition & 1 deletion internal/users/user_assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (view *userAssignChangeView) HandleKeyEvent(ev *tcell.EventKey) {
func (view *userAssignChangeView) startUsersSearching() {
app.GetApp().ClearNow()
app.GetApp().Loading(true)
users := view.findUser(view.issue.Fields.Project.Id)
users := view.findUser(view.issue.Fields.Project.Key)
usersStrings := FormatJiraUsers(users)
view.fuzzyFind = app.NewFuzzyFind(ui.MessageUsersFuzzyFind, usersStrings)
view.fuzzyFind.MarginBottom = 0
Expand Down

0 comments on commit 7314e00

Please sign in to comment.