What happened?
The library throws an error even on successful HTTP returns of IssueLinkTypeService.GetListWithContext because it is trying to marshal the return value into []IssueLinkType{} but the return is actually struct{IssueLinkTypes []IssueLinkType}.
What did you expect to happen?
The method should be able to unmarshal the API return and return a []IssueLinkType{}.
How can we reproduce it (as minimally and precisely as possible)?
Any call to IssueLinkTypeService.GetListWithContext that returns an HTTP/200 and should otherwise return successfully will trigger the bug.
Anything else we need to know?
Your Environment
Include as many relevant details about the environment you experienced the problem in
- go-jira version (git tag or sha): v1.16.0
- Go version (
go version): 1.25.0
- Jira type (cloud or on-premise): cloud
- Jira version / Api version:
What happened?
The library throws an error even on successful HTTP returns of
IssueLinkTypeService.GetListWithContextbecause it is trying to marshal the return value into[]IssueLinkType{}but the return is actuallystruct{IssueLinkTypes []IssueLinkType}.What did you expect to happen?
The method should be able to unmarshal the API return and return a
[]IssueLinkType{}.How can we reproduce it (as minimally and precisely as possible)?
Any call to
IssueLinkTypeService.GetListWithContextthat returns an HTTP/200 and should otherwise return successfully will trigger the bug.Anything else we need to know?
Your Environment
Include as many relevant details about the environment you experienced the problem in
go version): 1.25.0