You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Search Get/Post methods are not able to unmarshal the response body when one issue contains more than 2 components assigned and it's returning the following error:
bash error: json: cannot unmarshal array into Go struct field IssueFieldsScheme.issues.fields.components of type jira.ProjectComponentScheme
To Reproduce 🚧
Go to the Jira Cloud UI issue details view
Edit the issue adding N+1 components.
Search issues using the library with all fields
Loop the IssueSearchScheme struct
Expected behavior ✅
Render the issue components.
Screenshots:page_facing_up:
If applicable, add screenshots to help explain your problem.
Additional context
The component tab is not a slice of structs so if the issue contains more than 1 component, the method breaks
ctreminiom
changed the title
unmarshal array into Go struct field IssueFieldsScheme.issues.fields.components
unmarshal array error on IssueSearchService
Mar 4, 2021
go-atlassian version
v1.0.0
go-atlassian component
Describe the bug 🐛
The Search Get/Post methods are not able to unmarshal the response body when one issue contains more than 2 components assigned and it's returning the following error:
bash error: json: cannot unmarshal array into Go struct field IssueFieldsScheme.issues.fields.components of type jira.ProjectComponentScheme
To Reproduce 🚧
Expected behavior ✅
Render the issue components.
Screenshots:page_facing_up:
If applicable, add screenshots to help explain your problem.
Additional context
The component tab is not a slice of structs so if the issue contains more than 1 component, the method breaks
Add any other context about the problem here.
Code snippet
The text was updated successfully, but these errors were encountered: