2

I'm using BitBucket and Attlasian Jira. They are linked between each other so i can resolve an issues just with git comment:

 git commit -m "BUG-123 #resolve #comment My comment"

My question is. Is it possible to specify fix version with smart commit feature?

p37td8
  • 1,287
  • 2
  • 9
  • 20
  • How could you know the fix version before the version number is finalized? – Makoto Jan 20 '15 at 22:48
  • e.g. I'm preventing release build. I decided that the next version will be x23.1. I want to commit my changes with link to this version. Not to choose it manualy. Thanks – p37td8 Jan 20 '15 at 22:52

1 Answers1

2

According to the JIRA DVCS plugin API documentation, there are three commands you can use:

#time
#comment
#<transition>

There is no direct command to use to select the fix version, but you could likely set up a trigger or a hook in the JIRA system that will select a fix version for you upon transition, but there's no way to do it using the defined smart commit commands.

Ryan J
  • 8,275
  • 3
  • 25
  • 28