How do I get the creator of an attachment using confluence REST api?
http://confluence/rest/prototype/1/attachment/111111
gets this:
{ "id": "111111", "type": "attachment", "ownerId": "xxxxxx", "parentTitle": "bla", "fileName": "bla.png", "contentType": "image/png", "fileSize": 162070, "niceFileSize": "158 kB", "version": 1, "niceType": "Image", "iconClass": "content-type-attachment-image", "title": "bla.png", "thumbnailLink": { "href": "http://confluence/download/thumbnails/11111/bla.png?api=v2", "rel": "thumbnail" }, "thumbnailWidth": 300, "thumbnailHeight": 139, "wikiLink": "bla", "space": { "key": "bla", "name": "bla", "title": "bla", "type": "bla", "link": [ { "href": "http://confluence/rest/prototype/1/space/bla", "rel": "self" } ] }, "lastModifiedDate": { "friendly": "Feb 14, 2012", "date": "2012-02-14T04:27:43+1100" }, "createdDate": { "friendly": "Feb 14, 2012", "date": "2012-02-14T04:27:43+1100" }, "link": [ { "href": "http://confluence/rest/prototype/1/attachment/11111", "rel": "self" }, { "href": "http://confluence/download/attachments/8389284/bla.png?version=1&modificationDate=1329154063000&api=v2", "type": "image/png", "rel": "download" }, { "href": "http://confluence/pages/viewpageattachments.action?pageId=222222&highlight=bla#bla.png", "type": "text/html", "rel": "alternate" } ] }
Is there a call that exposes the creator? or call that can return the user by the ownerId?
You cannot get that info via REST, it is a bug -- https://jira.atlassian.com/browse/CONF-33121
Use another remote API for now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here are some resources you may want to examine:
https://developer.atlassian.com/display/CONFDEV/Confluence+JSON-RPC+APIs
https://developer.atlassian.com/display/CONFDEV/Remote+Confluence+Data+Objects#RemoteConfluenceDataObjects-attachmentAttachment
https://developer.atlassian.com/display/CONFDEV/Remote+Confluence+Methods
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.