Open leviska opened 3 years ago
Hi! Thank you for taking the time to create your first issue! Really cool to see you here for the first time. Please give us a bit of time to review it.
If you add expand: names
, you'll have something like this in response:
{
"expand": "schema,names",
"startAt": 0,
"maxResults": 50,
"total": 7,
"issues": [],
"names": {}
}
And as you can see from searchResult
, the "names" field isn't parsed
Hey,
I am very sorry that this issue has been open for a long time with no final solution. We work on this project in our spare time, and sometimes, other priorities take over. This is the typical open source dilemma.
To provide visibility, we created the Road to v2 Milestone and calling for your feedback in https://github.com/andygrunwald/go-jira/issues/489
The development will take some time; however, I hope you can benefit from the changes. If you seek priority development for your issue + you like to sponsor it, please contact me.
We will work on this issue indirectly. This means that during the development phase, we aim to tackle it. Maybe in a different way like it is currently handled. Please understand that this will take a while because we are running this in our spare time.
Thanks for using this library. If there is anything else you would like to tell us, let us know!
Is your feature request related to a problem? Please describe.
You can add "expand" field to the search request
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get
https://pkg.go.dev/github.com/andygrunwald/go-jira?utm_source=godoc#SearchOptions
So if you add "names" or "schema" for example, you can't get them from the result, because library will read the body, and will not parse this fields
Describe the solution you'd like
Add this fields into searchResult and somehow return them from Search function
Describe alternatives you've considered
I can make the request myself, but it's strange, that you can add "expand" in request, but can't read the result