Tempo API - How to get ticket's label from tempo api?

Mykhailo Z_
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!
September 28, 2023

Hi there,

I need to get all worklogs and I need to set a time by 2 criterias as "billable" and "non-billable" which is metioned as an attribute 'Labels' in the ticket where the developer add the worklogs. 

Unfortunately, I cannot find in the API docs which request should I use to get it. 

Can you help me? 

1 answer

1 vote
Susan Wu
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 28, 2023

Hi @Mykhailo Z_ 

If you have setup work attribute with Tempo worklogs, you can this endpoint to get them.
https://www.tempo.io/server-api-documentation/timesheets#tag/Worklogs/operation/searchWorklogs 

 

If you have setup Jira custom fields, you have to use Jira issue API to get list of issues first, then get its worklogs. (For further info, please contact Atlassian Support.)

https://docs.atlassian.com/software/jira/docs/api/REST/9.8.1/#api/2/issue-getIssue

 

Best regards,

Susan Wu

Tempo Product Expert

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events