Closed lipkau closed 6 years ago
Tried to add a attachment.
Add-JiraIssueAttachment -Issue STS-11582 -FilePath "C:\temp\out.txt" -Verbose VERBOSE: [Add-JiraIssueAttachment] Function started VERBOSE: [Get-JiraIssue] Function started VERBOSE: [Get-JiraConfigServer] Function started VERBOSE: [Get-JiraConfigServer] Complete VERBOSE: [Get-JiraIssue] Processing [STS-11582] VERBOSE: [Invoke-JiraMethod] Function started VERBOSE: [Get-JiraSession] Function started VERBOSE: [Get-JiraSession] Using Session saved in PrivateData VERBOSE: [Get-JiraSession] Complete VERBOSE: [Invoke-JiraMethod] Get https://jira.someserver.se/rest/api/latest/issue/STS-11582?expand=transitions VERBOSE: [Test-ServerResponse] Checking response headers for authentication errors VERBOSE: [Invoke-JiraMethod] Status code: 200 VERBOSE: [Invoke-JiraMethod] Function ended VERBOSE: [Get-JiraIssue] Complete VERBOSE: Performing the operation "Adding attachment ''." on target "STS-11582". VERBOSE: [Invoke-JiraMethod] Function started VERBOSE: [Get-JiraSession] Function started VERBOSE: [Get-JiraSession] Using Session saved in PrivateData VERBOSE: [Get-JiraSession] Complete VERBOSE: [Invoke-JiraMethod] Post https://jira.someserver.se/rest/api/latest/issue/38154/attachments VERBOSE: [Invoke-JiraMethod] Failed to get an answer from the server VERBOSE: [Test-ServerResponse] Checking response headers for authentication errors VERBOSE: [Invoke-JiraMethod] Status code: InternalServerError WARNING: Jira returned HTTP error 500 - InternalServerError VERBOSE: [Invoke-JiraMethod] Retrieved body of HTTP response for more information about the error ($responseBody) VERBOSE: [Invoke-JiraMethod] Function ended VERBOSE: [Add-JiraIssueAttachment] Complete
Hmm, seem to be working if i install 2.5.17.
Add-JiraIssueAttachment -Issue $issue -FilePath "C:\temp\out.txt" -Verbose VERBOSE: [Add-JiraIssueAttachment] Function started VERBOSE: Performing the operation "Adding attachment 'out.txt'." on target "STS-11582". VERBOSE: [Invoke-JiraMethod] Function started VERBOSE: [Get-JiraSession] Function started VERBOSE: [Get-JiraSession] Using Session saved in PrivateData VERBOSE: [Get-JiraSession] Complete VERBOSE: [Invoke-JiraMethod] Using WebSession (Username=[sUser1@someserver.se]) VERBOSE: [Invoke-JiraMethod] POST https://jira.someserver.se/rest/api/latest/issue/38154/attachments VERBOSE: [Invoke-JiraMethod] Function ended VERBOSE: [Add-JiraIssueAttachment] Complete
Will be fixed with the next release
Expected Behavior
Add-JiraIssueAttachment
should just workCurrent Behavior
Command fails on Cloud server with error
Possible Solution
Your Environment