Remote time tracking
Time tracking in JIRA is a great feature that allows users to track the time they spent on a particular issue. It lets the users log the 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 the 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 the third-party products—when it is necessary to log the work using remote APIs. In this recipe, we will see how to log work using the REST API.
Getting ready...
Create a JIRA REST client as mentioned in the Writing a Java client for the REST API recipe. Make sure that time tracking is enabled on the JIRA instance by checking at Administration | System | Issue Features... | Time Tracking.
How to do it...
There are different ways to log work on an issue depending on what we need to do with the remaining estimate on...