dosubot[bot] commented on issue #8558: URL: https://github.com/apache/incubator-devlake/issues/8558#issuecomment-3235341573
<!-- Greeting --> Hi @davinogueiradev! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the incubator-devlake team. <!-- Answer --> The root cause is confirmed: the Go struct for Jira issues defines the `Description` field as a string, but Jira sometimes returns this field as a complex object (Atlassian Document Format), which causes a JSON unmarshaling error in the pipeline when rich text is present [code reference](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/jira/tasks/apiv2models/issue.go). There are no existing tickets or documentation addressing this specific unmarshaling error. The recent update to the Jira epic collector [PR #8547](https://github.com/apache/incubator-devlake/pull/8547) did not resolve this issue. To handle both plain strings and rich text objects, you’ll need to update the struct to use a custom type for `Description` and implement custom unmarshaling logic that can process both formats. This approach is common in Go when dealing with fields that may be either a string or an object, especially with APIs like Jira that use ADF for rich text. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/326f4002-97b4-4208-8097-c681fd958245?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/326f4002-97b4-4208-8097-c681fd958245?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/326f4002-97b4-4208-8097-c681fd958245?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/326f4002-97b4-4208-8097-c681fd958245?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/326f4002-97b4-4208-8097-c681fd958245?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/326f4002-97b4-4208-8097-c681fd958245?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/326f4002-97b4-4208-8097-c681fd958245?feedback_type=other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8558) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
