Hello Markus,
This requirement sound a bit strange honestly, but if your customer really needs it, its achievable. You can have Command Parameter Values ( ticketnumber and DB SID in your case) as your workflow execution comments if you execute your workflows using REST APIs in a powershell script. Attaching the Posh script and the workflow it calls. It accepts a Parameter value as an argument, constructs an input file and calls a REST API to execute the workflow. When the workflow executes it will have comments with the value of the workflow parameter passed.
This script runs on PowerShell3.0 and above. You can modify it according to your WFA server, credentials, workflow UUID, and workflow parameters.
If you want use WFA GUI then there is still a way. You can create a command and use this script itself as the command code i.e. the WFA command itself will call the REST API to execute your workflow. When you create a Workflow for this command, your executing parent workflow will call the child workflow with the required parameters and set the Comment field accordingly and also execute your desired task.
warm regards,
Abhishek
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.