Forums

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

Tempo API - How to get account (customer) name per worklog

Chen Arbel August 30, 2018

Im trying to get the 'account' field value, which is the customer name from a call such:

https://<company name>.atlassian.net/rest/api/2/issue/<jira ticket id>/worklog/<worklog id>

 

The response doesn't contain any data regarding the account, but it does populate within the worklog UI itself.Screen Shot 2018-08-30 at 7.05.23 PM.png

1 answer

0 votes
Susanne Götz _Tempo_
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.
August 31, 2018

Hi Chen,

The API you are using is a JIRA API, not the Tempo API.

As worklogs made in Tempo are synced back to the JIRA database as "Tempo Timesheets" (which is a system user, no "real" JIRA user) the user information can not be retrieved with the JIRA API.

Information about the Tempo API's for Cloud can be found on https://tempo-io.github.io/tempo-api-docs

Regards,
Susanne Götz
Tempo team

Chen Arbel August 31, 2018

Thank you!

so there is no way to connect between jira ticket and the account reported By the system user for this ticket? 

Susanne Götz _Tempo_
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.
August 31, 2018

No, not if the worklog was created in Tempo. For these worklogs, only the Tempo API will return the worklog owner.

If the worklog was created in JIRA, it gets synced back to Tempo, including the information about the user who owns the worklog. For these worklogs you can retrieve the information with the JIRA API and the Tempo API.

Chen Arbel September 2, 2018

Thanks again.

 

Not sure what im missing bug im trying to get data of the following field - the one with the error. Tried few of the calls under 'workloads', can't see this field. is it count as a custom field?Screen Shot 2018-09-02 at 9.54.10 PM.pngScreen Shot 2018-09-02 at 9.55.46 PM.png

Chen Arbel September 3, 2018
Susanne Götz _Tempo_
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 3, 2018

Hi Chen, 

the Account field in your screenshot is a Tempo work attribute. This field can be used to link the worklog to a different Account than the one that is set in the Account custom field on the Issue. 

The dropdown for this field shows the Accounts that are linked to the Project. When logging work, you can select an Account that the worklog should be linked to.

The information for this field in shown in the "attributes" section when using the REST API

https://api.tempo.io/2/worklogs

Suggest an answer

Log in or Sign up to answer