You will notice in each topic in discourse helpdesk status of relevant issue. For example
If you’re topic owner, you will see “create helpdesk ticket” button there.
Clicking it will create a prepopulated template for issue, with the relevant link captured in last field.