We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go-atlassian version
go-atlassian component
Describe the bug 🐛 The User.Find method does not parse the query param
To Reproduce 🚧 Follow this documentation: https://docs.go-atlassian.io/jira-software-cloud/users/search#find-users
Expected behavior ✅ The ability to parse the query param
Code snippet
package main import ( "context" "github.com/ctreminiom/go-atlassian/jira" "log" "os" ) func main() { /* ----------- Set an environment variable in git bash ----------- export HOST="https://ctreminiom.atlassian.net/" export MAIL="MAIL_ADDRESS" export TOKEN="TOKEN_API" Docs: https://stackoverflow.com/questions/34169721/set-an-environment-variable-in-git-bash */ var ( host = os.Getenv("HOST") mail = os.Getenv("MAIL") token = os.Getenv("TOKEN") ) atlassian, err := jira.New(nil, host) if err != nil { log.Fatal(err) } atlassian.Auth.SetBasicAuth(mail, token) var ( accountID = "" query = "" startAt = 0 maxResults = 50 ) users, response, err := atlassian.User.Search.Do(context.Background(), accountID, query, startAt, maxResults) if err != nil { if response != nil { log.Println("Response HTTP Response", string(response.BodyAsBytes)) } log.Fatal(err) } log.Println("Response HTTP Code", response.StatusCode) log.Println("HTTP Endpoint Used", response.Endpoint) for _, user := range *users { log.Println(user) } }
The text was updated successfully, but these errors were encountered:
78758e8
Merge pull request #44 from ctreminiom/dev
04af684
🐛 Fixed #43
ctreminiom
No branches or pull requests
go-atlassian version
go-atlassian component
Describe the bug 🐛
The User.Find method does not parse the query param
To Reproduce 🚧
Follow this documentation: https://docs.go-atlassian.io/jira-software-cloud/users/search#find-users
Expected behavior ✅
The ability to parse the query param
Code snippet
The text was updated successfully, but these errors were encountered: