diff --git a/lib/galaxy/managers/workflows.py b/lib/galaxy/managers/workflows.py index 35089bc5e4a3..7f57f698e5f2 100644 --- a/lib/galaxy/managers/workflows.py +++ b/lib/galaxy/managers/workflows.py @@ -919,6 +919,9 @@ def to_format_2(wf_dict, **kwds): raise exceptions.RequestParameterInvalidException(f"Unknown workflow style {style}") if version is not None: wf_dict["version"] = version + # If returning a run-form workflow for a specific version, use that version's name + if style == "run": + wf_dict["name"] = workflow.name else: wf_dict["version"] = len(stored.workflows) - 1 return wf_dict