Forums

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

Change to REST API worklog/updated nextPage URL?

Kennedy Schnieders
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 16, 2024

Caught this issue today due to a failing workflow - for reference this workflow has been running daily since June 2023 without this failure, so my assumption is that something just changed.

The REST API endpoint /rest/api/3/worklog/updated provides a nextPage URL for the next set of updated worklogs. As of writing this, both in the REST API documentation (link) & actual use, the nextPage URL returned on a successful request has the following format: rest/api/3/worklogupdated?since=...

Screenshot 2024-01-16 111204.png

I am not sure if this is a recent change, or if this is how the nextPage URL has always been, but if this nextPage URL is used as-is now, the result is a 404 error.

Screenshot 2024-01-16 111359.png

In order to fix this, we are replacing worklogupdated with worklog/updated in the above returned URL.

This is not expected behavior given the REST API documentation. Just wanted to make others aware.

2 answers

1 vote
Nashid Farhad
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 17, 2024

Hi @Kennedy Schnieders 

 

This change wasn't an intended change - I'm afraid. We've had a minor incident and the issue should now be resolved.

Here's the Statuspage entry of the incident.

https://developer.status.atlassian.com/incidents/yb75slflv2fv

Apologies for the inconvenience.

Sunny Ape
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.
January 18, 2024

Thanks for the quick response @Nashid Farhad , much appreciated.

Kennedy Schnieders
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2024

Thanks, @Nashid Farhad ! Appreciate the quick turn-around on this.

0 votes
Sunny Ape
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.
January 16, 2024

The documentation for that endpoint does show in the example response that worklogupdated is the expected response for both the self and nextPage objects, not worklog/updated, so I'd recommend trusting the documentation on this occasion.

It's the same for some other GET endpoints such as worklog/deleted which returns worklogdeleted as the path in the response.

However, it is silly that the responses provide an invalid path that can't be resolved, so I'm inclined to think it's a bug in the responses and the forward slashes have been accidentally omitted from the path.

I'd suggest that you log it with Atlassian as a bug.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events