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
Hey @rasmusolssony,
Why was this issue closed already?
Did you find the solution to it?
Would be cool if you could share your solution with the community.
var s strings.Builder
fmt.Fprintf(&s, `{"fields": {"customfield_11702": "%s"}}`, *targetVersion)
var data = strings.NewReader(s.String())
req, err := client.NewRawRequest(http.MethodPut, url, data)
But I never got the NewRequest method to work and I'm not sure why the code in my original post didn't work either. Maybe an example or more detailed documentation about what type and format you are supposed to use could be handy.
Im trying to do a simple PUT request but even though my json is correct it says there is something wrong with the body.
The text was updated successfully, but these errors were encountered: