Terrible idea because these two artifacts (ticket and code) have different lifecycles, different participants, different rates of churn, different needs from a reporting perspective, and different rules/workflows.
Tickets being external to source decouples the systems, parties, and lifecycles.