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!
Community moderators have prevented the ability to post new answers.
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 )
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.