-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Pull in more fields for Jira #4547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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_*
) inconnector.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]] = {} |
There was a problem hiding this comment.
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
if hasattr(obj, "displayName"): | ||
display_name = obj.displayName |
There was a problem hiding this comment.
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
* Pull in more fields for Jira * Fix tests * Fix * more fix * Fix * Fix S3 test * fix
* Pull in more fields for Jira * Fix tests * Fix * more fix * Fix * Fix S3 test * fix
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.