Name Version
---- -------
JiraPS 2.14.6
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Microsoft Windows 10.0.21337
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Possible Solution
Find where the incorrect attribute assignment is happening and fix it.
Description
(Get-JiraIssue).Comment
is inconsistent. There are two different data structures.There are no comments
ConvertTo-Json -InputObject $ticket1.comment -Depth 1
There are one or more comment
ConvertTo-Json -InputObject $ticket2.comment -Depth 1
Steps To Reproduce
$ticket1 = Get-JiraIssue -Key SPACE-1
$ticket2 = Get-JiraIssue -Key SPACE-2
Expected behavior
Consistent data structure. From looking at the 0-comment data structure I guess some assignment is going wrong.
I'd expect to see this structure for an issue with one and more comments.
Your Environment
Possible Solution
Find where the incorrect attribute assignment is happening and fix it.