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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kristin,
I'm trying to use new API for other project. But, receive server error 500 (Internal Server Error).
I'm trying to update value for _Type_ attribute. My JSON request is:
{"Id":10110,"Comment":"test","Self":"https://[test].atlassian.net/rest/tempo-timesheets/3/worklogs/10110","Issue":{"Key":"OTDEFECT-6","Id":10104,"RemainingEstimateSeconds":7200,"Summary":"Export Failed - Application became unusuable.","Self":"https://[test].atlassian.net/rest/api/2/issue/10104","IssueType":{"Name":"Bug","IconUrl":"https://[test].atlassian.net/images/icons/issuetypes/bug.png"}},"TimeSpentSeconds":3600,"DateStarted":"2015-06-27T14:00:00Z","Author":{"Name":"[test]","DisplayName":"[test]","Self":"https://[test].atlassian.net/rest/api/2/user?username=[test]"},"Attributes":[{"Value":"test_type1","Key":"_Type_"},{"Value":"_Type2_","Key":"_Type2_"}]}
Please let me know what I'm doing wrong?
Thank you very much,
Roman.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.