modules/IssueProcessor/Issue.psm1
class Issue{ [string] $key [string] $summary [string] $type [hashtable] $linkedIssues [string] $status Issue(){ } [string] linkedIssuesToString([string] $separator){ [string] $retValue = '' foreach ($key in $this.linkedIssues.Keys) { if ($retValue) { $retValue += "$separator{0} {1}" -f @($this.linkedIssues[$key].reason, $this.linkedIssues[$key].key) } else { $retValue += '{0} {1}' -f @($this.linkedIssues[$key].reason, $this.linkedIssues[$key].key) } } return $retValue } } |