# 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="/files/meYH4haxbNj6f2HQ7LB3" 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="/files/k1Q2myOEW5E3nKMXBaGo" 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="/files/NhxoKj4FQCka40cw10Hl" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6SB0UeyVubgDzbtwBEhd" 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mobb.ai/mobb-user-docs/integrating-with-issue-tracking-systems/embedding-ticket-id-in-pull-requests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
