Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Timesheet Automation

Alexis Antonakis January 17, 2025

Is there a way, using Python, to log time into the timesheet.
I have users that always log the same time against the same job each day, and it makes more sense to automate this, if possible.

7 answers

2 votes
Kai Krause
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.
January 17, 2025

Hi, 

tempo deliveers an api to do that REST API Documentation (4.0) 

I personally would prefer an build with jira automation and web rewuests , but this is depend on your concret usecase . 

Hope it helps. 

BR

Kai

Alexis Antonakis January 17, 2025

ah the latter part looks more like what I am after.  I already automate the creation of Issues.  Are you talking about a similar thing, but with the timesheets?

Kai Krause
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.
January 17, 2025

Hi,

in my opinion it is a cleaner way to keep the things under the control in jira, therefore you can build a similar thing . 

But also you can try to create a worklog with standard automation action , and look if the looked time would be proccesed to the clockwork Plugin. So you dont have to use the webrequest action in the automation. 

BR
Kai

1 vote
Joseph HANI
Contributor
January 17, 2025

Hello @Alexis Antonakis ,

 

Jira provide an API for adding worklog, they provide a python script that could help you ;)  : https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-worklogs/#api-rest-api-2-issue-issueidorkey-worklog-post 

1 vote
Lucas Knorr
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.
January 17, 2025

Hi, 

Tempo has their own API. You can write a small script, which sends data to these endpoints:

https://apidocs.tempo.io/dc/modules/timesheets.html#tag/Worklogs

0 votes
Gökçe Karaduman-The Starware
Contributor
January 27, 2025

Hi @Alexis Antonakis ,

You can add worklogs using Jira's native API, but if you're looking for an easier method and are open to using a third-party application, I recommend the WorklogPRO app from the Atlassian Marketplace. This app allows you to copy worklogs from one timesheet period to another or clone a previously created worklog with just one action. Additionally, with WorklogPRO's periodic worklog recording feature, you can easily select the start and end dates from the dialog and save the worklog for those dates in a single action.

period_worklog.jpgclone.jpg

Disclaimer: I work for the vendor who developed this application.

 

0 votes
Gracjan Wesołowski _HeroCoders_
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.
January 20, 2025

Hi @Alexis Antonakis 

My name is Gracjan, and I'm a Customer Success Expert at HeroCoders, the team behind the Clockwork app.

For the repeating, same worklog you can use Jira native rest API. They support python. Our app works fine with worklogs created by Jira native system. Here you can find documentation about it.

There is also an option to create repeating worklogs in Clockwork.

  1. Open the log work dialog as usual.

  2. Fill in the time and other required details.

  3. Click on More options.

  4. Toggle on the Repeat this worklog option and select the appropriate interval (daily or weekly).

  5. Select the end date when the worklog will cease to be repeated.

  6. Click Save.

Repeatable worklogs.pngEach user can create a repeating work log based on some conditions until a specific date. 

Of course, if you want to use API, that's totally fine. Jira rest API should be enough.

If you have any questions, let me know.

Cheers!

Gracjan

 

0 votes
Deniz Oğuz - The Starware
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.
January 18, 2025

Hi @Alexis Antonakis ,

Actually, you can also do it without using any programing language. You can use a command line tool. One such tool is our "CLI for Jira" tool. You can add worklog using the following command. It is free for up to 10 users. It has both cloud and DC versions it works in all operating systems.  

worklog add --issue=WLPC-359 --comment="Testing CLI for Jira" --timeSpent="2h 30m"

Since this is a shell command you can invoke it from other programs if you want. Or add an alias to make it just one word.

0 votes
Alexis Antonakis January 17, 2025

Thanks for those, but is Tempo?
I use the time sheet entitled 'Clockwork Timesheet' .
Is this the same thing?
Sorry for my ignorance but I am completely new to Jira

 

Kai Krause
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.
January 17, 2025

Hi

Tempo timesheet is a often used Plugin for Jira to build a timesheet . Clockwork timesheet is another. Ok , so we wre talking about clockwork. :D 

Do you know ive you used the free or pro version of Clockwork ? 

Clockwork also delivers an api, Use the Clockwork API but it is only in the pro Version. 

BR
Kai  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events