Media id (represented as attrs.id) is immutable in Media API.
Consumers of the document should always fetch fresh metadata, for media with given ID, from Media API
I dont know what “Media API” reffers to or how to fetch fresh metadata.
I know that I can fetch attachments on the issue from the REST api, but I can’t find anything that connects these to the Media services ID (attrs.id) in the Media Node.
I am still looking for an answer to this one, so if any of you know how to read the connection between attachments and the Media service IDs in the description it would be really helpful.
Sorry that we didn’t pick this up sooner (I came across your post when answering another question), however I think what you’re looking for is the Media API - at the moment it’s not available in the JIRA API - you might wish to create a feature request if you’d like to see it in the future
I’m still a little confused. Your documentation says:
“Consumers of the document should always fetch fresh metadata using the Media API.”
how do I do that if the Media API is not available?
As I have mentioned above, I already have access to the attachments via the REST API, I just need a way to know which attachment belongs to which Media id.
At the moment Jira doesn’t provide an API to fetch the ID for attachments - so the best bet would be to create a Suggestion that you’d like to see an API for that in the future.
For the interim, i think using the version 2 API would be the best bet.