diff --git a/inspirehep/modules/workflows/tasks/submission.py b/inspirehep/modules/workflows/tasks/submission.py index e166b0f71a..98b6342ea5 100644 --- a/inspirehep/modules/workflows/tasks/submission.py +++ b/inspirehep/modules/workflows/tasks/submission.py @@ -258,7 +258,7 @@ def close_snow_ticket(obj, ticket_id, context_factory, template=None): data = {"ticket_id": str(ticket_id)} reason = obj.extra_data.get("reason") if reason: - data["reason"] = reason + data["message"] = reason response = requests.post( "{inspirehep_url}/tickets/resolve".format( diff --git a/tests/integration/workflows/test_workflow_tasks_submission.py b/tests/integration/workflows/test_workflow_tasks_submission.py index aeb1127ddf..ad269f5c11 100644 --- a/tests/integration/workflows/test_workflow_tasks_submission.py +++ b/tests/integration/workflows/test_workflow_tasks_submission.py @@ -94,7 +94,7 @@ def test_close_ticket_calls_snow_resolve(workflow_app): _close_ticket = close_ticket() _close_ticket(obj, None) assert ( - request_mocker.request_history[0]._request.body == '{"ticket_id": "1"}' + request_mocker.request_history[0]._request.body == '{"ticket_id": "1", "message": "reply reason"}' )