There are three commands you can use in your commit message.
ISSUE_KEY #time <value>w <value>d <value>h <value>m <comment_string>
Records time tracking information against an issue. The value must be a whole number. For example:
This example records 1 week, 2 days, 4hours and 30 minutes against an issue, and adds the comment '
Total work logged' in the Work Log tab of the issue.