public/api-v2/screen/Invoke-JiraAddScreenTabField.ps1
#https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-screens-screenId-tabs-tabId-fields-post function Invoke-JiraAddScreenTabField { [CmdletBinding()] param ( # The ID of the screen [Parameter(Mandatory,Position=0)] [int64] $ScreenId, # The ID of the tab [Parameter(Mandatory,Position=1)] [int64] $TabId, # The field to add [Parameter(Mandatory,Position=2)] [string] $FieldId, # The JiraContext object to use for the request [Parameter()] [object] $JiraContext ) process { $functionPath = "/rest/api/2/screens/$ScreenId/tabs/$TabId/fields" $verb = "POST" $body = New-PACRestMethodJsonBody @{ fieldId = $FieldId } $method = New-PACRestMethod $functionPath $verb $null $body $method.Invoke($JiraContext) } } |