/
Smart Commits (track your time)

Smart Commits (track your time)

Introduction

This page contains information on how to use Smart Commits while you are coding for the OpenHospital project.

Smart Commits allow repository committers to perform actions such as transitioning JIRA Software issues or embedding specific commands into their commit messages.

You can:

  • comment on issues

  • record time tracking information against issues

  • transition issues to any status defined in the JIRA Software project's workflow.



What is important for Agile in OpenHospital project

We need that you include in your commit at least

  • the issue key (e.g. 'OP-11')

  • the time you spend for the commit (e.g. '#time 1h 30m')

  • [optional] the transition to apply to the issue



One example is worth a thousand words

Commit for issue OP-11 #comment added Gradle support #time 1d 4h #in-review Please review my work

Syntax:

<ignored text> <ISSUE_KEY> <ignored text> #<COMMAND> <optional COMMAND_ARGUMENTS>



Other Smart Commit commands



We invite you to refer to the official documentation Using Smart Commits.



Otherwise...

It is also possible to log your time directly on the Jira issues (click “Log work”):

Altough this method is more long, can be more precise and it affect immediately the SCRUM board and Sprint (in opposite to the smart commit that will be taken in account only after merge commits from your pull-requests)





Related content

Jira Issues Workflow (go with the flow)
Jira Issues Workflow (go with the flow)
More like this
Contribution Guidelines
Contribution Guidelines
More like this
Contribution workflow
Contribution workflow
More like this
TimeTools (coding dates and time)
TimeTools (coding dates and time)
Read with this
2020-01-23 Sprint 1 Retrospective
2020-01-23 Sprint 1 Retrospective
More like this
2020-03-02 Sprint 2 Retrospective
2020-03-02 Sprint 2 Retrospective
More like this

Open Hospital powered by ISF
ISF © Informatici Senza Frontiere - ONLUS