Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What would be the best way to fetch data as soon as they are updated/created?

Thomas Pötzsch July 1, 2019

For my thesis, I need to fetch data from Confluence and Jira as up to date as possible, ideally right after it's creation/it has been updated.

I know about the REST API, and I have no problems fetching data in general.
This question is more about how I can find out which data has changed/created and then get it from the API.

Because most of the questions in this forum circle around "how to fetch data in general", I have neither found a solid workflow for this, nor an API functionality.

1 answer

1 accepted

0 votes
Answer accepted
Davin Studer
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.
July 1, 2019

I would keep track of the times that you get data from the REST API. Then simply query the API using CQL (for Confluence) or JQL (for Jira) based on the last modified date being greater than the last time you checked.

Davin Studer
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.
July 1, 2019

However, if you want to know when data has changed via a push notification rather than having to poll it you should look into WebHooks. Jira supports this, but Confluence does not.

Thomas Pötzsch July 2, 2019

I already thought of that solution - it is by far the easiest approach to just fetch the data regularly, as you proposed.
It would be cool if there was a more elegant approach, but this will work, too.
Thanks for the answer!

Davin Studer
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.
July 2, 2019

Definitely, for Jira WebHooks would be the best way. It is a push notification where Jira tells you when something has changed. Unfortunately, Confluence doesn't have it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events