Skip to content

Unable to marshal return for IssueLinkTypeService.GetListWithContext #740

@svdaddio

Description

@svdaddio

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions