Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Export Worklog Attribute Using getWorklog API Method

Gabe Hodges October 20, 2013

I apologize if this question has been answered somewhere but I couldn't find it. I'm using the getWorklog method in the Tempo API and I'm not seeing any of the custom attributes that have been added, in the returned XML data. Is there a way to retrieve these attributes with the API? I'd also like to know if it's possible to update them via the API.

Thanks!

4 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
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.
October 21, 2013

The Update Worklog method updates only the fields given in the example. To update worklog attributes you will need to use the REST Api Browser, just remember that the tempo-rest included is non-public and subject to change ( https://developer.atlassian.com/display/DOCS/Using+the+REST+API+Browser )

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.
October 20, 2013

The Tempo API can only be used to update Tempo Data, which is worklogs. To update other data you have to check the JIRA Api. Take a look at https://developer.atlassian.com/display/JIRADEV/Updating+an+Issue+via+the+JIRA+REST+APIs and see if this is helpful.

Gabe Hodges October 20, 2013

I only want to update Tempo data. Maybe I'm not understanding, are the Worklog attributes considered part of Tempo data or Jira data? If they are part of the Tempo data, how do I update them using the Update Worklog method? I haven't gotten it to work yet. I have gotten the <external_hours> field to update though, which makes me wonder if <external_id> and<external_hours> are the only fields that can be updated. Can you clarify for me?

Thanks for your help on this Susanne!

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.
October 20, 2013

Hi Gabe,

to include JIRA custom fields in the XML export, you need to check them in Administration-> Add-ons-> Tempo Timesheets, Fields, Custom Fields. They appear in your export with their ID, not their name.

You can also update Tempo worklogs with external information. Please take a look at https://tempoplugin.jira.com/wiki/display/TEMPO/Tempo+Servlet+Manual for more information.

Best regards

Susanne (Tempo)

Gabe Hodges October 20, 2013

Susanne,

I'm a noob to all this, but I thought the JIRA custom fields were different from the Tempo Worklog attributes. Sergio mentioned above that I could get the attributes from the <billing_attributes> field, but he wasn't sure if I could update them. I just tried a few tests and I'm not having any luck. Are the only attributes you can update, the ones shown in "Update Worklogs" API example?

0 votes
Sergio October 20, 2013

https://tempoplugin.jira.com/wiki/display/TEMPO/Tempo+Servlet+Manual#TempoServletManual-GetWorklogs

The tag you need to query in your XML output is <billing_attributes>

I have never updated Tempo from the API.

Gabe Hodges October 20, 2013

Thanks Sergio!

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events