diff --git a/src/Technodelight/Jira/Renderer/Issue/CustomField.php b/src/Technodelight/Jira/Renderer/Issue/CustomField.php index ed65a9f..079980a 100644 --- a/src/Technodelight/Jira/Renderer/Issue/CustomField.php +++ b/src/Technodelight/Jira/Renderer/Issue/CustomField.php @@ -71,7 +71,16 @@ private function renderContent( Field $field, OutputInterface $output, array|string $value - ): mixed { + ): string { + // if custom field is some kind of atlassian object, we need to extract it's name and description + if (is_array($value)) { + return sprintf( + '%s%s', + $value['name'] ?? '', + !empty($value['description']) ? sprintf(' (%)', $value['description']) : '' + ); + } + return $this->formatter->format($field, $output, $this->imageRenderer->render($value, $issue)); } }