public/api-v2/issue-link/Invoke-JiraGetRemoteIssueLinks.ps1
#https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issue-issueIdOrKey-remotelink-get function Invoke-JiraGetRemoteIssueLinks { [CmdletBinding()] param ( # The issue Id or Key [Parameter(Mandatory,Position=0)] [string] $IssueIdOrKey, # Optional parameter used to return only the specified link with matching global id [Parameter(Position=1)] [string] $GlobalId, # The JiraContext object to use for the request [Parameter()] [object] $JiraContext ) process { $functionPath = "/rest/api/2/issue/$IssueIdOrKey/remotelink" $verb = "GET" $query = New-PACRestMethodQueryParams if($PSBoundParameters.ContainsKey("GlobalId")){$query.Add("globalId",$GlobalId)} $method = New-PACRestMethod $functionPath $verb $query $method.Invoke($JiraContext) } } |