Skip to content

Atlassian Tempo API for Java and Example Application

Notifications You must be signed in to change notification settings

mikerussellnz/tempo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tempo-api

Atlassian Tempo API for Java and Example Application

Allows connecting to Tempo to query and create work logs.

creating a worklog

TempoApiClient tempoApiClient = new TempoApiClient(tempoUrl, username, password);
Worklog worklog = new Worklog();
Issue issue = new Issue();
issue.setKey("JIRA-691");
worklog.setIssue(issue);
worklog.setAuthor(new Author(username));
worklog.setComment("My Worklog Created with API);
worklog.setTimeSpentSeconds(3600);
worklog.setDateStarted(TempoApiClient.formatDateTime(new Date()));
tempoApiClient.createWorkLog(worklog);

retrieving worklogs

TempoApiClient tempoApiClient = new TempoApiClient(tempoUrl, username, password);
Worklog[] worklogs = tempoApiClient.getWorklogs(startDate, endDate);

using the example app that synchronizes exchange calendar to worklogs

Set tempoUrl and exchangeSvcAutoDiscoverUrl appropriately in App.java.

Run App with appropriate command line arguments:

 --username [email protected] --password mysecretpassword --start 2017-08-14 --end 2017-08-18 

About

Atlassian Tempo API for Java and Example Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages