> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/devops/settings/jira-integration/adding-jira-stories-to-a-branch.md).

# Adding Jira Stories to a Branch

{% hint style="warning" %}

#### Written for the Old UI

This article was written for the old UI. The instructions are still usable, but the screenshots are outdated. In some cases, items referenced in the instructions have moved or changed. If you cannot find an item, see the [Where Did It Go](/devops/new-ui-ux-transition/where-did-it-go.md) article.
{% endhint %}

## ![](https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FG5ZbxX918xOHwbAwAJ4n%2FSummary2-Small-Icon.svg?alt=media\&token=da26a67f-ff7f-47b3-8669-06be960dc2d7) Overview

This article explains how to add Jira stories to a DevOps branch. Once added, the Jira story's status will automatically update to the mapped status whenever the branch is deployed to an organization configured in the Jira integration with Status Mapping. For more details on how status mapping works, see the following article.

* [Overview of Jira Integration](/devops/settings/jira-integration/overview-of-jira-integration.md)

## Adding Jira Stories

{% stepper %}
{% step %}

### Select a Branch

1. Click **Code** from the left sidebar menu.
2. Click the branch to add a Jira story to.

   <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2F2Auu5VoV1m2m7FOYmLop%2FAddingJiraStoriesToBranch-S01-01.png?alt=media&amp;token=31f79fb5-6932-46c9-8809-fc464987dc07" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Add Stories

1. Click the **Related stories** tab.
2. Click **Add stories**.

   <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FBVjzp7TdjRyKmPbTCSek%2FAddingJiraStoriesToBranch-S02-01.png?alt=media&amp;token=c4729ec4-2785-457e-a7d9-e4ce14593fb3" alt="" width="563"><figcaption></figcaption></figure></div>
3. Click the **Integration** dropdown menu.

   <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FxZZlFdZXceqPcvuHTcBs%2FAddingJiraStoriesToBranch-S02-02.png?alt=media&amp;token=8ac8d58b-e153-4395-821b-6f83a325abc5" alt="" width="563"><figcaption></figcaption></figure></div>
4. Select the Jira integration to add stories from.

   <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FyUwvo2RBjkUjtyXnPUCH%2FAddingJiraStoriesToBranch-S02-03.png?alt=media&amp;token=d39dfb87-4b20-4ea3-b94e-a9220fa21759" alt="" width="563"><figcaption></figcaption></figure></div>
5. Click the **Project** dropdown menu.
6. Select the Jira project to add stories from.

   <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FgIFPAQzcKrfIass2OuEQ%2FAddingJiraStoriesToBranch-S02-04.png?alt=media&amp;token=f5c7d911-0387-40ce-b58a-4b30870f4362" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
To add stories from different Jira projects, add the stories from each project separately by following the instructions in this section.
{% endhint %}

7. Click the **Stories** dropdown menu.
8. Select each of the stories to add to this branch.

   <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FY7YkYIknFgaJZoBSwQkH%2FAddingJiraStoriesToBranch-S02-05.png?alt=media&amp;token=26ce2f16-0f54-4944-b8e4-5eef5a08f86c" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}

#### Selecting Stories

Only the Story Key is displayed for each story in the list. If you need to identify which Story Keys correspond to the stories you're looking for, you'll need to reference your Jira project directly.

Click a Jira story in the dropdown menu to select it, and a check mark will appear to the right. You can select multiple stories at once. To unselect a story, click it again to remove the check mark. If you have many stories, use the search bar to find them quickly.
{% endhint %}

9. Once you have selected the stories, click outside of the menu to close it.

   <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FFQRVbbTaBKoE34HPm4KW%2FAddingJiraStoriesToBranch-S02-06.png?alt=media&amp;token=15fd8f59-7042-4ef2-a931-e5b01a201107" alt="" width="563"><figcaption></figcaption></figure></div>
10. Click **Add** to add the selected stories.

    <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FXDMHSz1rcQJ5x2MXDH4V%2FAddingJiraStoriesToBranch-S02-07.png?alt=media&amp;token=99dfb3cd-cdab-49ef-bde5-883a11f8e510" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Confirm Added Stories

1. Once the stories are added, they are listed in the **Related Stores > Jira** table along with details about each story.
2. Confirm that the stories you added are correct.

   <div align="left"><figure><img src="https://1800549522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRpUu5iMlzMFAudyBvMOl%2Fuploads%2FvwgLIPrrlxuHiuQXAyKL%2FAddingJiraStoriesToBranch-S03-01.png?alt=media&amp;token=94619ec9-0672-40ff-88e5-20d4a1e047bc" alt="" width="563"><figcaption></figcaption></figure></div>
3. The status of these stories will be updated whenever this branch is deployed to an organization that has a mapped status update.
   {% endstep %}
   {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flosum.com/devops/settings/jira-integration/adding-jira-stories-to-a-branch.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
