mattn / go-redmine

MIT License
185 stars 80 forks source link

Add omitempty To Some Issue Fields #58

Closed cleamnagata closed 3 months ago

cleamnagata commented 1 year ago

We use Redmine v5 series API.

When updating a ticket with no category or assignee set, An error will occur if 0 is specified for category_id or assigned_to_id.

To avoid this, we added omitempty to category_id and assigned_to_id.

zztkm commented 1 year ago

I have tested updating tickets with the Redmine v5 api using go-redmine with this PR incorporated and it works fine!

@mattn Sorry to bother you, but it would be great if you could review it and merge it if everything is ok!

mattn commented 3 months ago

Thank you