How does DiffOnly on the tempo servlet work?

I'm working with the Tempo API and the servlet to get a bunch of information about worklogs. I'd like to minimize the amount of stuff that we pull, so being able to get just a diff seems ideal. The servlet documentation says about DiffOnly:

 

  • External applications use diffOnly=true to get only changed records since last GetWorklogs
  • diffOnly returns only records that have changed since last update (UpdateWorklogs) or are marked as external error (external_result is not OK)

In the data we've got, external_result is coming back as an empty element; does it need to literally be <external_result>OK</external_result> to not be marked as an external error? Does external_result get automatically set somewhere, or is that something we need to do? Also, does DiffOnly return things that have changed since the last GetWorklogs, or since the last UpdateWorklogs?

To be clear, what we'd like to do is pull info from the servlet once, and then the next time only get the data that has changed since last time we pulled, regardless of what time period that worklog is from.

Thanks for any help!

 

0 answers

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Monday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

343 views 0 13
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