Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using powershell, getting all issues fields but with issue description I get '@{version=1; type=doc'

Mark Pizarro August 13, 2020

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.

1 answer

0 votes
Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 14, 2020

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events