You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to search for issues and expand issue comments, but am having some trouble.
Here's an example of what I'm doing:
// fetches issues successfully based on query but does not expand anythingiss, _, err:=jiraClient.Issue.Search(q, nil)
// for some reason this returns nothingiss, _, err:=jiraClient.Issue.Search(q, &jira.SearchOptions{})
// also finds nothing, not sure how to expand the commentsiss, _, err:=jiraClient.Issue.Search(q, &jira.SearchOptions{
Expand: "comments",
})
I can repeat fetching an issue with Get to get the comments, but I figure that's a really inefficient way to do it.
Any chance you might have some idea how to do this properly?
Thank you!
The text was updated successfully, but these errors were encountered:
@ghostsquad Sorry, I figured it out a few minutes after posting this. It was just a matter of including a MaxResults in the options. I think it might be nicer if in Search, it would build the query params based on which options were set, e.g if MaxResults is 0, not include that query params in the URL, etc, which would be equivalent to providing a nil options argument.
Hi,
I'm trying to search for issues and expand issue comments, but am having some trouble.
Here's an example of what I'm doing:
I can repeat fetching an issue with
Get
to get the comments, but I figure that's a really inefficient way to do it.Any chance you might have some idea how to do this properly?
Thank you!
The text was updated successfully, but these errors were encountered: