From d412d974e37d935816ecb84a04adb0a66ef9f0cf Mon Sep 17 00:00:00 2001 From: Mathieu Leplatre Date: Tue, 17 Sep 2024 09:55:40 +0200 Subject: [PATCH] Fix #1043: use customfield_10319 as default severity field --- config/config.prod.yaml | 2 -- jbi/models.py | 2 +- tests/unit/test_steps.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/config.prod.yaml b/config/config.prod.yaml index dc5a41c4..fb637021 100644 --- a/config/config.prod.yaml +++ b/config/config.prod.yaml @@ -19,7 +19,6 @@ description: Firefox Front End whiteboard tag parameters: jira_project_key: FIDEFE - jira_severity_field: customfield_10319 steps: new: - create_issue @@ -619,7 +618,6 @@ description: Firefox GenAI parameters: jira_project_key: GENAI - jira_severity_field: customfield_10319 steps: new: - create_issue diff --git a/jbi/models.py b/jbi/models.py index 52070bb4..30ba0ca1 100644 --- a/jbi/models.py +++ b/jbi/models.py @@ -78,7 +78,7 @@ class ActionParams(BaseModel, frozen=True): steps: ActionSteps = ActionSteps() jira_components: JiraComponents = JiraComponents() jira_cf_fx_points_field: str = "customfield_10037" - jira_severity_field: str = "customfield_10716" + jira_severity_field: str = "customfield_10319" jira_priority_field: str = "priority" jira_resolution_field: str = "resolution" labels_brackets: Literal["yes", "no", "both"] = "no" diff --git a/tests/unit/test_steps.py b/tests/unit/test_steps.py index 4320f1c4..08141847 100644 --- a/tests/unit/test_steps.py +++ b/tests/unit/test_steps.py @@ -914,7 +914,7 @@ def test_update_issue_severity( mocked_jira.create_issue.assert_not_called() mocked_jira.update_issue_field.assert_called_with( - key="JBI-234", fields={"customfield_10716": {"value": "Moderate"}} + key="JBI-234", fields={"customfield_10319": {"value": "Moderate"}} )