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 v1.4.2
go-atlassian component
Describe the bug 🐛 Content.Search() does not return fields beyond the title of the content.
To Reproduce 🚧 Copy example code - https://docs.go-atlassian.io/confluence-cloud/content#search-contents-by-cql Update host, username, password values
Expected behavior ✅ Return pages with values in models.ContentScheme
Actual behavior: Meeting notes <nil> <nil> <nil> <nil> <nil> [] <nil> <nil> <nil> []}
Meeting notes <nil> <nil> <nil> <nil> <nil> [] <nil> <nil> <nil> []}
Additional context Using Content.Get with an ID works fine.
Code snippet
package main import ( "context" "github.com/ctreminiom/go-atlassian/confluence" "log" "net/http" "os" ) func main() { var ( host = os.Getenv("HOST") mail = os.Getenv("MAIL") token = os.Getenv("TOKEN") ) instance, err := confluence.New(nil, host) if err != nil { log.Fatal(err) } instance.Auth.SetBasicAuth(mail, token) instance.Auth.SetUserAgent("curl/7.54.0") var ( cql = "type=page" cqlContext = "" expand = []string{"childTypes.all", "metadata.labels"} maxResults = 50 ) contentPage, response, err := instance.Content.Search(context.Background(), cql, cqlContext, expand, "", maxResults) if err != nil { if response.Code == http.StatusBadRequest { log.Println(response.API) } log.Fatal(err) } log.Println("Endpoint:", response.Endpoint) log.Println("Status Code:", response.Code) log.Println(contentPage.Links.Next) for _, content := range contentPage.Results { log.Printf("%v", content) } }
The text was updated successfully, but these errors were encountered:
in 1.4.2 is the wrong search endpoint used,
go-atlassian/confluence/content.go
Line 140 in 98b39a3
Sorry, something went wrong.
Hi @timbrammer910
It was a bug 🐞 but the PR #103 fixed the Content.Search() method.
FYI: I just released the version v1.4.3
ctreminiom
No branches or pull requests
go-atlassian version
v1.4.2
go-atlassian component
Describe the bug 🐛
Content.Search() does not return fields beyond the title of the content.
To Reproduce 🚧
Copy example code - https://docs.go-atlassian.io/confluence-cloud/content#search-contents-by-cql
Update host, username, password values
Expected behavior ✅
Return pages with values in models.ContentScheme
Actual behavior:
Meeting notes <nil> <nil> <nil> <nil> <nil> [] <nil> <nil> <nil> []}
Additional context
Using Content.Get with an ID works fine.
Code snippet
The text was updated successfully, but these errors were encountered: