Skip to content

Commit

Permalink
Add AccountID to User struct
Browse files Browse the repository at this point in the history
Addresses Issue #203 and Atlassian's new GDPR requirements.
  • Loading branch information
benmcginnis committed Apr 16, 2019
1 parent 53c4680 commit 5369039
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ type UserService struct {

// User represents a JIRA user.
type User struct {
Self string `json:"self,omitempty" structs:"self,omitempty"`
Self string `json:"self,omitempty" structs:"self,omitempty"`
AccountID string `json:"accountId,omitempty" structs:"accountId,omitempty"`
// TODO: name & key are deprecated, see:
// https://developer.atlassian.com/cloud/jira/platform/api-changes-for-user-privacy-announcement/
Name string `json:"name,omitempty" structs:"name,omitempty"`
Password string `json:"-"`
Key string `json:"key,omitempty" structs:"key,omitempty"`
Password string `json:"-"`
EmailAddress string `json:"emailAddress,omitempty" structs:"emailAddress,omitempty"`
AvatarUrls AvatarUrls `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
DisplayName string `json:"displayName,omitempty" structs:"displayName,omitempty"`
Expand Down

0 comments on commit 5369039

Please sign in to comment.