danswer-ai / danswer

Gen-AI Chat for Teams - Think ChatGPT if it had access to your team's unique knowledge.
https://docs.danswer.dev/
Other
9.75k stars 1.09k forks source link

Fix content extraction from JIRA with API v2 vs. v3 #1678

Open artmatsak opened 1 week ago

artmatsak commented 1 week ago

This PR fixes the following issues with content extraction from JIRA issues:

  1. When using API version 2, comment body text is not extracted.
  2. When using API version 3, issue description is not extracted.

This is because API version 3 returns ADF for issue descriptions and comment bodies, whereas API version 2 returns plain text. #1329 addressed the problem with comments for API version 3 but broke comment extraction when using API version 2.

Note that this PR does not address the problem with the currently used ADF conversion function being broken (#1677), so using JIRA API version 3 still isn't advised.

vercel[bot] commented 1 week ago

@artmatsak is attempting to deploy a commit to the Danswer Team on Vercel.

A member of the Team first needs to authorize it.