Is it possible to edit Tempo worklog attributes using Tempo API (updateWorklog)?

Is it possible to edit Tempo worklog attributes using Tempo API (updateWorklog)?

7 answers

1 accepted

0 votes
Accepted answer

Hi Roman,

Please note that you need to construct JSON exactly like documented. You have a lot of things in your JSON now that are clearly marked as "ignored in POST and PUT" (example: you should only POST the 'key' and 'remainingEstimateSeconds' in the 'issue' object). You also need to validate the spelling of the parameters, uppercase/lowercase etc. It all matters.

You need to contact Atlassian to get the logs from your Cloud instance but I recommend that you start your own local JIRA instance while you are developing your application. That will probably save you a lot of time. See here for details: https://developer.atlassian.com/index.html

Hope this helps,

-Bjarni

Hello Bjarni, You were right. It works. Problem was in serialization (uppercase/lowercase). Thank you very much. Roman.

Hello Bjarni,

 

Thank you for reply.

 

Yes, I understand that it is server side error and therefore asking Tempo to help. 

Please let me know where server logs can be checked? (it is JIRA/Tempo in the cloud). Is there somewhere web interface to access logs?

I don't use Atlassian REST browser, just do request according to specification: http://www.tempoplugin.com/doc/timesheets/api/rest/7.12/. I can read worklogs successfully, but not modify.

 

Thank you,

Roman.

Hi Roman,

this is not possible in the current version of Tempo but we are working on improvements of the API so this might be available in the future. The existing updateWorklog API is only for synchronization and verification of worklogs with an external system.

Kind regards,

Susanne

Thank you, Susanne. Clear.

Hi Roman

in Timesheets 7.12 we released a new Worklogs REST API: http://www.tempoplugin.com/doc/timesheets/api/rest/7.12/

Does this new REST API fulfill your needs?

Kind regards

Kristín

Hi Roman,

"Server error 500" means that something went wrong on the server side. Please check the server logs.

Also: are you using the Atlassian REST browser? It is a good tool to browse and experiment with the REST APIs.

Best regards,

-Bjarni

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

335 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you