From 53690393314e7a56087d4697634625d5808b032f Mon Sep 17 00:00:00 2001 From: bmcginnis Date: Tue, 16 Apr 2019 10:44:10 -0400 Subject: [PATCH] Add AccountID to User struct Addresses Issue #203 and Atlassian's new GDPR requirements. --- user.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/user.go b/user.go index 2a61c74..e14ebd8 100644 --- a/user.go +++ b/user.go @@ -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"`