Skip to content

fix(jiraonprem): do not reset priority on update when unspecified (#6751) - #6935

Open
almagas wants to merge 1 commit into
keephq:mainfrom
granbellllc-png:fix/issue-6751-jiraonprem-preserve-priority-on-update
Open

almagas wants to merge 1 commit into
keephq:mainfrom
granbellllc-png:fix/issue-6751-jiraonprem-preserve-priority-on-update

Conversation

@almagas

@almagas almagas commented Nov 11, 2026 •

Copy link
Copy Markdown

Summary

Fixes #6751.

Previously, _notify and __update_issue defaulted priority to "Medium". When a workflow updated an issue (e.g. modifying the summary or custom fields without touching priority), __update_issue wrote update["priority"] = [{"set": {"name": "Medium"}}], silently resetting manually escalated tickets back to Medium.

Changes

  • Changed default priority parameter from "Medium" to None in _notify and __update_issue (keep/providers/jiraonprem_provider/jiraonprem_provider.py).
  • When creating a new issue (__create_issue), _notify passes priority or "Medium", preserving the default issue creation priority.
  • When updating an issue, __update_issue only writes update["priority"] if priority is explicitly provided.
  • Added unit tests in tests/test_jira_provider.py asserting priority preservation when unspecified and priority update when specified.

Testing

  • Ran pytest tests/test_jira_provider.py -> 11 passed, 1 warning in 0.03s (Exit Code 0).

@CLAassistant

CLAassistant commented Nov 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@granbellllc-png

Copy link
Copy Markdown

I have read the CLA Document and I hereby sign the CLA

1 similar comment
@almagas

almagas commented Nov 11, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@granbellllc-png
granbellllc-png force-pushed the fix/issue-6751-jiraonprem-preserve-priority-on-update branch from 1e01215 to fbf1d1b Compare November 11, 2026 07:56
…ephq#6751)

- Change default priority from 'Medium' to None in JiraonpremProvider._notify and __update_issue.
- In _notify, when creating a new issue, default to 'Medium' (priority or 'Medium') to preserve issue creation defaults.
- When updating an issue, only include priority in update payload when explicitly provided.
- Add unit tests in tests/test_jira_provider.py asserting priority is preserved when unspecified and forwarded when specified.
@granbellllc-png
granbellllc-png force-pushed the fix/issue-6751-jiraonprem-preserve-priority-on-update branch from fbf1d1b to 66a806c Compare November 11, 2026 08:10
@almagas

almagas commented Nov 13, 2026

Copy link
Copy Markdown
Author

Hi team, CLA is signed and all CI checks are green (unit tests passing). Ready for review whenever you have time. Thank you!

This branch has not been deployed

No deployments
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.

[🐛 Bug]: Jira On-Prem provider resets the priority on every update

3 participants