# Embedding Ticket ID in Pull Requests

## Embedding Ticket ID in Pull Request

Some engineering teams have a strict requirement that every pull request must reference a ticket ID (for example, a Jira or Linear issue). Mobb supports this by allowing you to embed a **Ticket ID** directly into the pull request title, description, and commit message.

This ensures compliance with internal development workflows and makes it easier to track fixes against work items.

***

### How It Works

When creating a pull request (either for a single fix or multiple fixes), you will see a **Ticket ID Indication** field under **More options**.

* The ticket ID you provide will automatically be included in:
  * **Pull request title**
  * **Pull request description**
  * **Commit message**

Hovering over the tooltip `(i)` explains:

> *“This value will be automatically added in any pull request title and commit message.”*

***

### Single Fix Flow

When applying a fix individually, expand **More options** and enter the ticket ID.

<figure><img src="https://2539741639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8WF4UBNkXMHG7Dz0RXI7%2Fuploads%2Fgit-blob-7bf39acc4ec4be32a64632af2d1170fb62122c36%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

In this example, the user entered `JIRA-123`.

\
Mobb automatically updates the PR metadata as follows:

* **Pull request title**\
  `SQL Injection vulnerability fix (powered by Mobb) JIRA-123`
* **Pull request description**\
  Includes the ticket ID at the bottom:
* **Commit message**\
  Also includes the ticket ID.

***

### Bulk Fix Flow

When applying multiple fixes at once, the **More options** section is available at the bottom of the bulk action menu. Expand it and you should see **Ticket ID Indication**.

<figure><img src="https://2539741639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8WF4UBNkXMHG7Dz0RXI7%2Fuploads%2Fgit-blob-8f1d14bd4598fa1a5eb5c5057cba6b806d15e3c1%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Entering a value ensures all generated pull requests and commits are annotated with the ticket ID.

***

### Example

Below is a pull request automatically created by Mobb with the ticket ID `JIRA-123`:

<figure><img src="https://2539741639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8WF4UBNkXMHG7Dz0RXI7%2Fuploads%2Fgit-blob-2e3f0ad232c43272cc8c26d2616109e8b5ad2db0%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2539741639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8WF4UBNkXMHG7Dz0RXI7%2Fuploads%2Fgit-blob-b1f46c688976cfc41ac4ebc03c2903d09b872634%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### Summary

* **Ticket ID Indication** is optional, but recommended if your team enforces PR-ticket linkage.
* Supported in both **single fix** and **bulk fix** flows.
* Applied automatically to:
  * Pull request title
  * Pull request description
  * Commit message
