Skip to content

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Apr 17, 2025

Description

Fixes https://linear.app/danswer/issue/DAN-1834/pull-in-more-fields-for-jira

How Has This Been Tested?

Connector tests + tested with Jira server locally.

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@Weves Weves requested a review from a team as a code owner April 17, 2025 00:07
Copy link

vercel bot commented Apr 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2025 1:03am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Enhanced the Jira connector to extract and store additional metadata fields from Jira issues, including issue types, assignees, reporters, and timestamps.

  • Added field name constants (_FIELD_*) in connector.py to improve maintainability and consistency
  • Updated process_jira_issue() to extract additional metadata fields (priority, status, labels, due dates)
  • Fixed display name extraction in best_effort_basic_expert_info() to match Jira's API format
  • Added comprehensive test coverage for Story and Epic issue types with full metadata validation
  • Improved error handling for field extraction with best-effort approach to prevent failures

3 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile


page_url = build_jira_url(jira_client, issue.key)

metadata_dict: dict[str, str | list[str]] = {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: metadata_dict type annotation allows both str and list[str], but some fields like created and duedate could be datetime objects

Comment on lines +26 to +27
if hasattr(obj, "displayName"):
display_name = obj.displayName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Inconsistent fallback - line 29 uses get('displayName') but line 27 uses direct attribute access which could raise AttributeError

@Weves Weves added this pull request to the merge queue Apr 17, 2025
Merged via the queue into main with commit 6df1c6c Apr 17, 2025
10 of 11 checks passed
@Weves Weves deleted the jira-enhancements branch April 17, 2025 03:14
aronszanto pushed a commit to aronszanto/onyx that referenced this pull request Apr 26, 2025
* Pull in more fields for Jira

* Fix tests

* Fix

* more fix

* Fix

* Fix S3 test

* fix
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* Pull in more fields for Jira

* Fix tests

* Fix

* more fix

* Fix

* Fix S3 test

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants