# Associating existing issue with a branch

**URL:** <https://forum.gitea.com/t/associating-existing-issue-with-a-branch/218>\
**Category:** Install/Maintain/Configure\
**Created:** [February 27, 2018, 5:32pm UTC](https://forum.gitea.com/t/associating-existing-issue-with-a-branch/218 "2018-02-27T17:32:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![outatime](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/outatime/32/180_2.png) [@outatime](https://forum.gitea.com/u/outatime)\
**Post date:** [February 27, 2018, 5:32pm UTC](https://forum.gitea.com/t/associating-existing-issue-with-a-branch/218/1 "2018-02-27T17:32:44Z")

</div>

Hello,

When creating a new issue, I can associate it with one of existing branches or tags (top right corner, above _Labels_). I’m not able to do it after creating the issue — is it desired behavior?

Thanks!

* * *

**Update:** relevant (I guess) code:

> <https://github.com/go-gitea/gitea/blob/master/templates/repo/issue/branch_selector_field.tmpl#L3>

> <https://github.com/go-gitea/gitea/blob/master/routers/repo/issue.go#L756>

---

<div class="post-metadata">

**Author:** ![howl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/howl/32/4725_2.png) [@howl](https://forum.gitea.com/u/howl)\
**Post date:** [February 27, 2018, 6:45pm UTC](https://forum.gitea.com/t/associating-existing-issue-with-a-branch/218/2 "2018-02-27T18:45:16Z")

</div>

Straight from the horse’s mouth:

> Searching, filtering and editing is not yet implemented, so the branch can only specified when creating the issue

> <https://github.com/go-gitea/gitea/pull/780>
>
> This patch add a new field to the 'issue' entity, named 'branch' with the necess…ary UI to specify which branch this issue is referring. 
> Searching, filtering and editing is not yet implemented, so the branch can only specified when creating the issue

You’re very welcome to submit a pr or issue if you have the time 🙂

---

<div class="post-metadata">

**Author:** ![outatime](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/outatime/32/180_2.png) [@outatime](https://forum.gitea.com/u/outatime)\
**Post date:** [February 27, 2018, 8:13pm UTC](https://forum.gitea.com/t/associating-existing-issue-with-a-branch/218/3 "2018-02-27T20:13:55Z")

</div>

Just a `git blame` away… Sorry for not digging deeper 😞

/solved

---

<div class="post-metadata">

**Author:** ![howl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/howl/32/4725_2.png) [@howl](https://forum.gitea.com/u/howl)\
**Post date:** [March 3, 2018, 11:31am UTC](https://forum.gitea.com/t/associating-existing-issue-with-a-branch/218/4 "2018-03-03T11:31:24Z")

</div>

[Issue created](https://github.com/go-gitea/gitea/issues/3620)

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [June 15, 2025, 12:44am UTC](https://forum.gitea.com/t/associating-existing-issue-with-a-branch/218/5 "2025-06-15T00:44:21Z")

</div>


