From JIRA I need to pull all issues using Powershell and rest api and writing the output to csv. I have the script authenticating and pulling all fields needed and writing to csv with no problem except the description field. the only output I seem to get is "@{version=1; type=doc; content=System.Object[]}". I just need the text from the description field.
Community moderators have prevented the ability to post new answers.
The Description field is just like any other field and should just contain text
If you're using Invoke-RestMethod, you could test it like this:
$ResponseData = Invoke-RestMethod -Uri "https://yourijirainstance/rest/api/2/issue/key-123" -Method Get -Headers $yourHeaders
$theDescription = $ResponseData.PsObject.Properties.value.description
Can you please provide a snippet of your PowerShell.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.