This is either a question or a bug report, i'm not sure yet.
When creating worklogs via smart commits, there doesn't seem to be a way of adding the description to the worklog.
What this means is the devs have to...
With smart commits you can use the #comment option, but this is created as a comment against the task and not as the description of the worklog entry.
There is also an option in the settings for time tracking: Copying of comments to work description. This seemed hopeful, but only when editing this setting does it then say, its only does it when a workflow transition event take place.
The next option was to use the transition with smart commits, such as #in-progress, but it didnt update the worklog description.
Am i doing something wrong or is this not possible via smart commits?
Hey @Jake Arnold
To address your question about using smart commits in Jira to create a worklog description, here’s a detailed explanation:
You’re attempting to use smart commits with the #time
element to log time and automatically populate the worklog description. However, the worklog entries lack descriptions, and you are forced to manually update them, which is tedious.
The main challenges are:
#comment
directive adds a comment to the task, not to the worklog description.Unfortunately, Jira’s smart commit syntax does not natively support adding descriptions to worklogs. This is a limitation in how smart commits are implemented. Currently, smart commits allow you to:
#time
)#<transition>
)#comment
) But there is no built-in syntax for attaching a description to a worklog entry.Here are a few potential approaches to address this limitation:
You can use the Automation for Jira feature to bridge the gap:
#description
or a custom tag).comment
field in the payload to specify the worklog description.If you're using Bitbucket, consider creating a pipeline or script that intercepts commit messages, processes them for specific tags, and updates Jira worklogs programmatically.
Consider exploring Jira plugins like Worklog Assistant or Tempo Timesheets, which might offer enhanced functionality for logging time with descriptions from commits.
You correctly noted that this setting only applies to workflow transitions. If you configure a workflow transition (e.g., using #in-progress
in your commit), Jira can copy comments to the work description, but this doesn’t occur during smart commits without a transition event. This is why the setting didn’t work as expected.
Thanks @Renata_Getint
I did try the transition with smart commits, however it didnt work either, the comment always gets written to comments and not to the worklog:
e.g.
git commit -m 'JBXI-1 #time 1h #in-review #comment testing transition worklog description'
The task did transition to In review, but nothing in the worklog description, it only appears in comments.
I'll take a look at the automation and see if this helps resolve this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.