File tree Expand file tree Collapse file tree
AzureDevOpsPowerShell/Public/Api/Work/WorkItems Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,10 +93,11 @@ function New-AzDoWorkItem {
9393 }
9494
9595 $params = @ {
96- uri = " $CollectionUri /$ProjectName /_apis/wit/workitems/`$ $ ( $_.WorkItemType ) "
97- method = ' POST'
98- version = ' 7.1-preview.3'
99- body = $body
96+ uri = " $CollectionUri /$ProjectName /_apis/wit/workitems/`$ $ ( $_.WorkItemType ) "
97+ method = ' POST'
98+ version = ' 7.1-preview.3'
99+ body = $body
100+ contentType = ' application/json-patch+json'
100101 }
101102
102103 if ($PSCmdlet.ShouldProcess ($CollectionUri , " Create work item named: $ ( $PSStyle.Bold ) $name $ ( $PSStyle.Reset ) " )) {
Original file line number Diff line number Diff line change @@ -94,10 +94,11 @@ function Set-AzDoWorkItem {
9494 }
9595
9696 $params = @ {
97- uri = " $CollectionUri /$ProjectName /_apis/wit/workitems/$ ( $_.WorkItemId ) "
98- method = ' PATCH'
99- version = ' 7.1-preview.3'
100- body = $body
97+ uri = " $CollectionUri /$ProjectName /_apis/wit/workitems/$ ( $_.WorkItemId ) "
98+ method = ' PATCH'
99+ version = ' 7.1-preview.3'
100+ body = $body
101+ contentType = ' application/json-patch+json'
101102 }
102103
103104 if ($PSCmdlet.ShouldProcess ($CollectionUri , " Setting work item: $ ( $PSStyle.Bold ) $ ( $_.WorkItemId ) $ ( $PSStyle.Reset ) " )) {
You can’t perform that action at this time.
0 commit comments