andygrunwald / andygrunwald/go-jira

`IssueFields.Unknowns` and `IssueFields.Names` not returned in `Issue.SearchWithContext` api

Open
#636 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.6k
Forks
500
PR merge metrics
No merged PRs in 30d

Description

## 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)?

```go
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:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.