Getting the Published date for a Confluence Page?

I need to show, and sort by, the date a page is published on a Confluence wiki.

For a new page that’s published immediately it’s the created date. However if the page is set to publish in the future it’s not, and the history.lastUpdated.when date is right.

Until the page is edited, when that changes to be the edit date.

Is the publish date accessible via the REST v1, REST v2 or GraphQL API?

Did you ever find the answer to this?

I didn’t. AFAICT it’s impossible - but I haven’t looked since I moved companies and we don’t use Confluence any more :partying_face:

Congrats on the new job :slight_smile:

I’ve just found it hidden away in the “version” object. It’s named “when”.
Not much use to you now but for me it solves a sorting issue, much like the one you had :slight_smile:

1 Like

Good find! Which API (& its version) are you using for this?

the URI is : https://your-confluence-instance.atlassian.net/wiki/rest/api
I assume that’s version 2