Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I add a Related Work Item to a Commit?

Like in Visual Studio, I would like if possible to relate my commits to bugs, tasks, etc. In Visual Studio is as easy as Add Work Item by ID from the Related Work Items section.

1 answer

1 accepted

0 votes
Answer accepted

Hey Yadel,

I'm going to assume you're asking about Sourcetree, or at least about committing to a git repository like Bitbucket.

If you've got Bitbucket (or Github) connected to Jira, all you need to do is mention the Jira key (e.g. ABC-123) in your commit message and the rest will be taken care of for you by the Jira integration. It doesn't matter if you're using Sourcetree, Github Desktop, or even straight git-cli - as long as the issue key is in the commit message, it'll be linked.

To see more about connecting Jira to whichever source control you're using, check out these links:

Cheers,
Daniel

You guessed right about SourceTree, and I'm committing to a Git repo in VSTS. One thing I have noticed is, when I do it in VS the comments for the commit display the work item Id with a #[Id]. I'm not sure if by doing so (manually entering #[Id]), will be enough.

It worked. By just adding #[Id] in the commit comments.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,375 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you