How to document and provide a ticket solution to client

follow-up question on this topic.
How i associate a ticket that was not open in the portal, i.e. manually by the support agent?
In the end i want the the customer to see everything in the portal.