public/api-v1/long-task/Invoke-ConfluenceGetLongRunningTask.ps1
#https://developer.atlassian.com/cloud/confluence/rest/#api-longtask-id-get function Invoke-ConfluenceGetLongRunningTask { [CmdletBinding()] param ( # The Id of the task [Parameter(Mandatory,Position=0,ValueFromPipeline,ValueFromPipelineByPropertyName)] [Alias("Id")] [int32] $TaskId, # The AtlassianContext object to use for the request (use New-AtlassianContext) [Parameter()] [object] $RequestContext ) begin { $results = @() } process { $functionPath = "/wiki/rest/api/longtask/$TaskId" $verb = "GET" $method = New-PACRestMethod $functionPath $verb $results += $method.Invoke($RequestContext) } end { $results } } |