andygrunwald / go-jira

Go client library for Atlassian Jira
https://pkg.go.dev/github.com/andygrunwald/go-jira?tab=doc
MIT License
1.47k stars 469 forks source link

Remove erroneous properties from Issue Comment #639

Closed LaurenceTews closed 1 year ago

LaurenceTews commented 1 year ago

What type of PR is this?

What this PR does / why we need it:

Currently requests built using the AddComment() and UpdateComment() functions will fail (HTTP 400) due to a schema mismatch. V2 of the Jira REST Api does not accept Author or UpdateAuthor properties.

Which issue(s) this PR fixes:

https://github.com/andygrunwald/go-jira/issues/604

Fixes #

Special notes for your reviewer:

Additional documentation e.g., usage docs, etc.:

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-comments/#api-rest-api-2-issue-issueidorkey-comment-post https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-comments/#api-rest-api-2-issue-issueidorkey-comment-id-put