Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,378
Community Members
 
Community Events
175
Community Groups

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.

How about for Azure DevOps? I tried it as #[id] and it didn't work. Any ideas?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events