public/api-v2/screen/Invoke-JiraUpdateScreenTab.ps1
#https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-screens-screenId-tabs-put function Invoke-JiraUpdateScreenTab { [CmdletBinding()] param ( # The ID of the screen to update [Parameter(Mandatory,Position=0)] [int64] $ScreenId, # The ID of the tab to update [Parameter(Mandatory,Position=1)] [int64] $TabId, # The name of the new tab to create [Parameter(Mandatory,Position=2)] [string] $Name, # The JiraConnection object to use for the request [Parameter(Position=3)] [hashtable] $JiraConnection ) process { $functionPath = "/rest/api/2/screens/$ScreenId/tabs/$TabId" $verb = "PUT" $body = @{} if($PSBoundParameters.ContainsKey("Name")){$body.Add("name",$Name)} Invoke-JiraRestMethod $JiraConnection $functionPath $verb -Body $body } } |