Forums

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

How to extract all worklog Id's that have a valid account from TEMPO REST API after selected Date?

Hallaien
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 15, 2024

jira.servername/rest/tempo-timesheets/4/worklogs/1

gives me the worklog information of the Worklog ID = 1.  

However, I want to extract all worklogs where the account is not null and updated or created after a certain date. 

How can I achieve this? 

With Jira REST API I could use jql code, but it doesn't seem possible with tempo rest api.

jira.servername/rest/api/3/search/maxResults=100&startAt=0&jql=updated>='Date'AND%20Account%20isNOT%20EMPTY%20"

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Hallaien
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 18, 2024

Hi @Marc,

if I add jira.servername/rest/tempo-timesheets/4/worklogs/search/from='2024-11-11'/to=2024-11-15/worker/'me'  or other versions search functions;

jira.servername/rest/tempo-timesheets/4/worklogs/search/attributes/object(_newaccount_)/type="ACCOUNT"/name="newaccount"

I get error 404. 

What am I doing wrong to not get any results? 

 

Marc - Devoteam
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.
November 18, 2024

Hi @Hallaien 

I have never user this call myself, as I'm not on DC.

But I think this is better to to with Postman or Open API.

0 votes
Marc - Devoteam
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.
November 15, 2024

HI @Hallaien 

Tempo API offers function based on this.

https://apidocs.tempo.io/dc/modules/timesheets.html?hsLang=en#tag/Worklogs/operation/searchWorklogs 

But what do you mean by account ID, Jira account ID or Tempo Account ID?

Tempo API doesn't know the Jira Account ID.

But Tempo API has no query option, you will need to specify the account

Or contact Tempo support and see if they might have a solution for this.

If they do, post it here please?

 

TAGS
AUG Leaders

Atlassian Community Events