JIRA Timesheet Plugin REST Api

Josh Smith September 23, 2012

I see that the JIRA timesheet plugin has a REST API, as it's shows as one of the modules when I view the plugin config.

What I can't find is the port or address that it's runnign on so I can try connecting to it to see if I can use it to help with some custom data extraction that I need.

6 answers

1 accepted

0 votes
Answer accepted
Andriy Zhdanov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2012

Port is the same as your JIRA is running, and url is jira/rest/timesheet-gadget/1.0/raw-timesheet.json, please see https://studio.plugins.atlassian.com/browse/TIME-269 for more details.

Thank you.

Josh Smith September 23, 2012

I tried hiting that link ( and the variation defined in the link you provided) but both return back an error.

SyntaxError: Unexpected token )

That makes me think there is a bug in the plugin and the marshaller can't produce valid JSON output for it. But I don't know if maybe the URL is wrong (specifically the version part) can anyone else provide any guidance?

0 votes
Derick Katipearachchi May 17, 2016

This API is not working now since stopped the timesheet add-on.

We have installed new add-on of the same developer. But API responses is not quite similar as this API. API is very slow it crash when we have more than 13 users.

 

Do we have any other API to get timesheets for bulk users.

 

Thanks.

Samantha

Andriy Zhdanov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2016

New add-on (Time Reports) does not provide REST API, you might be using JIRA native REST API.

Derick Katipearachchi May 18, 2016

Thank you for your reply.

I couldn't find any direct native API to get woklogs at once.

If anything, please do let me know.

Regards,

Samantha

Andriy Zhdanov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2016

Hm, but you've mentioned some APIs. Well, you may see http://www.jiratimesheet.com/wiki/RESTful_endpoint.html for reference.

0 votes
Ron van der Burg February 21, 2013

Installed version 2.2.9

Andriy Zhdanov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2013

Ah, it's not available in 2.2, you need 2.3 and JIRA 5.x

0 votes
Ron van der Burg February 19, 2013

Yes, just added one

gadget url was https://mydomain.com/rest/gadgets/1.0/g/jira-timesheet-plugin:timesheet-gadget/gadget.xml

rest module is active (did not restart server after installing)

Andriy Zhdanov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2013

That's correct, and url for rest timesheet is also correct. Is it possible that you've installed old version of plugin? In other words what version did you install?

0 votes
Ron van der Burg February 19, 2013

Installed the plugin but get a {"status-code":404} when i use

https://mydomain.com/rest/timesheet-gadget/1.0/raw-timesheet.json

https://mydomain.com/rest/api/latest/search?jql=reporter=John+order+by+duedate

Works fine?

Andriy Zhdanov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2013

Hi Ron,

Are other assets, gadget and reports available for you? Check also plugin modules in Administration, to see if Rest module is enabled.

Thank you.

0 votes
Andriy Zhdanov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2012

Port is the same as your JIRA is running, and url is jira/rest/timesheet-gadget/1.0/raw-timesheet.json, please see https://studio.plugins.atlassian.com/browse/TIME-269 for more details.

Thank you.

Suggest an answer

Log in or Sign up to answer