@@ -31,9 +31,9 @@ type IssueService service
31
31
32
32
// UpdateQueryOptions specifies the optional parameters to the Edit issue
33
33
type UpdateQueryOptions struct {
34
- NotifyUsers bool `url:"notifyUsers"` // can't be omitted as this means it's omitted when false which isn't desired as this defaults to true
35
- OverrideScreenSecurity bool `url:"overrideScreenSecurity,omitempty"`
36
- OverrideEditableFlag bool `url:"overrideEditableFlag,omitempty"`
34
+ NotifyUsers * bool `url:"notifyUsers,omitempty"`
35
+ OverrideScreenSecurity * bool `url:"overrideScreenSecurity,omitempty"`
36
+ OverrideEditableFlag * bool `url:"overrideEditableFlag,omitempty"`
37
37
}
38
38
39
39
// Issue represents a Jira issue.
@@ -544,8 +544,8 @@ type GetQueryOptions struct {
544
544
// Properties is the list of properties to return for the issue. By default no properties are returned.
545
545
Properties string `url:"properties,omitempty"`
546
546
// FieldsByKeys if true then fields in issues will be referenced by keys instead of ids
547
- FieldsByKeys bool `url:"fieldsByKeys,omitempty"`
548
- UpdateHistory bool `url:"updateHistory,omitempty"`
547
+ FieldsByKeys * bool `url:"fieldsByKeys,omitempty"`
548
+ UpdateHistory * bool `url:"updateHistory,omitempty"`
549
549
ProjectKeys string `url:"projectKeys,omitempty"`
550
550
}
551
551
@@ -558,12 +558,12 @@ type GetWorklogsQueryOptions struct {
558
558
}
559
559
560
560
type AddWorklogQueryOptions struct {
561
- NotifyUsers bool `url:"notifyUsers,omitempty"`
561
+ NotifyUsers * bool `url:"notifyUsers,omitempty"`
562
562
AdjustEstimate string `url:"adjustEstimate,omitempty"`
563
563
NewEstimate string `url:"newEstimate,omitempty"`
564
564
ReduceBy string `url:"reduceBy,omitempty"`
565
565
Expand string `url:"expand,omitempty"`
566
- OverrideEditableFlag bool `url:"overrideEditableFlag,omitempty"`
566
+ OverrideEditableFlag * bool `url:"overrideEditableFlag,omitempty"`
567
567
}
568
568
569
569
// CustomFields represents custom fields of Jira
@@ -839,7 +839,7 @@ func (s *IssueService) Create(ctx context.Context, issue *Issue) (*Issue, *Respo
839
839
// This double check effort is done for v2 - Remove this two lines if this is completed.
840
840
func (s * IssueService ) Update (ctx context.Context , issue * Issue , opts * UpdateQueryOptions ) (* Issue , * Response , error ) {
841
841
apiEndpoint := fmt .Sprintf ("rest/api/2/issue/%v" , issue .Key )
842
- url , err := addOptions (apiEndpoint , * opts )
842
+ url , err := addOptions (apiEndpoint , opts )
843
843
if err != nil {
844
844
return nil , nil , err
845
845
}
0 commit comments