Users can choose a cover/title image for blog posts. Either by selecting an Unsplash image or by uploading a custom image. I want to display these images in a macro.
When searching for blog posts by using requestConfluence("/wiki/rest/api/content/search?cql=...")
, I can expand metadata.properties.cover_picture_id_published
to get information about the cover image.
If it is an Unsplash image, metadata.properties.cover-picture-id-published.value.id
contains the image URL – great. But if it is an uploaded image, the id field only contains a UUID, and I don’t know how to build the image URL from that.
Can anyone help?