Time tracking in JIRA is a great feature that allows users to track the time they spent on a particular issue. It lets users log work as and when they spend time on an issue and JIRA will keep track of the original estimated time, actual time spent, and the remaining time. It also lets users adjust the remaining time to be spent on the issue, if needed!
While JIRA has a great user interface to let users log work, there are times-when integrating with third-party products-it is necessary to log work using remote APIs. In this recipe, we will see logging work using the REST API.
Create a JIRA REST client as mentioned in the Writing Java client for REST API recipe. Make sure that time tracking is enabled on the JIRA instance by checking at Administration | System | Issue Features | Time Tracking.