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

IssueFields.Unknowns and IssueFields.Names not returned in Issue.SearchWithContext api #636

Open
karanpopat opened this issue Jun 12, 2023 · 1 comment

Comments

@karanpopat
Copy link

What happened?

The fields IssueFields.Unknowns and IssueFields.Names are not being returned in Issue.SearchWithContext API, while its coming in the Issue.Get API.
We are setting Expand: "names" in the SearchOptions

What did you expect to happen?

The fields IssueFields.Unknowns and IssueFields.Names return the information in the Search API.

How can we reproduce it (as minimally and precisely as possible)?

options := jira.SearchOptions{
	StartAt:    0,
	MaxResults: limit,
	Expand:     "names",
}

issues, res, err := client.Issue.SearchWithContext(ctx, jql, &options)

Your Environment

  • go-jira version (git tag or sha): 1.16.0
  • Go version (go version): go version go1.20.3 darwin/arm64
  • Jira type (cloud or on-premise): cloud
  • Jira version / Api version:
@andygrunwald
Copy link
Owner

Thanks @karanpopat for the bug report.
I am currently short on time for open-source contributions due to other/private obligations. If you are able to fix it, I am happy to review a pull request. Thanks for contributing to open source (also via this issue!) and thanks for understanding.

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