Skip to content
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

Remove labels param from payload on jira_ticket method. #301

Merged
merged 2 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Version History
===============

v7.2.1
------

* Remove labels param from payload on jira_ticket method. `<https://github.com/lsst-ts/LOVE-manager/pull/301>`_

v7.2.0
------

Expand Down
7 changes: 1 addition & 6 deletions manager/manager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,6 @@ def jira_ticket(request_data):
if "request_type" not in request_data:
return Response({"ack": "Error reading request type"}, status=400)

tags_data = request_data.get("tags").split(",") if request_data.get("tags") else []

obs_system_selection = request_data.get("jira_obs_selection")

try:
Expand All @@ -428,10 +426,6 @@ def jira_ticket(request_data):
# Set it in case the OBS project id has changed for any reason
# and update the default value above and in the following line.
"project": {"id": os.environ.get("JIRA_PROJECT_ID", "10063")},
"labels": [
"LOVE",
*tags_data,
],
"summary": get_jira_title(request_data),
"description": get_jira_description(request_data),
# customfield_15602 which represents the URGENT flag
Expand All @@ -445,6 +439,7 @@ def jira_ticket(request_data):
OBS_TIME_LOST_FIELD: float(request_data.get("time_lost", 0)),
},
}

if obs_system_selection:
jira_payload["fields"][OBS_SYSTEMS_FIELD] = json.loads(obs_system_selection)
except Exception as e:
Expand Down
Loading