Open amitmtank opened 4 years ago
Add-JiraIssueAttachment.ps1 failing with URL error - This operation is not supported for a relative URI.
[Uri]$Uri = $Uri.GetLeftPart("Path") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CategoryInfo : NotSpecified: (:) [], MethodInvocationException FullyQualifiedErrorId : InvalidOperationException
Probably because no resolvable function Resolve-JiraIssueObject @ line 86 of https://github.com/AtlassianPS/JiraPS/blob/master/JiraPS/Public/Add-JiraIssueAttachment.ps1 and need Get-JiraIssue instead.
$issueObj = Resolve-JiraIssueObject -InputObject $Issue -Credential $Credential
I see it's in private but not sure why it's not resolving the URL with that function then...
Please provide more context on the error and on how you are running the command.
My test is working fine
Description
Add-JiraIssueAttachment.ps1 failing with URL error - This operation is not supported for a relative URI.
Possible Solution
Probably because no resolvable function Resolve-JiraIssueObject @ line 86 of https://github.com/AtlassianPS/JiraPS/blob/master/JiraPS/Public/Add-JiraIssueAttachment.ps1 and need Get-JiraIssue instead.