How to specify version with git smart commits?

1.8k Views Asked by At

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?

1

There are 1 best solutions below

2
On

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.