Hello,
I need to translate <ri:user ri:userkey="xxxxxxx" /> to user name using REST api. I am geting <ri:user ...> element when get storage of confluence content using following REST call.
https://example.com:8080/confluence/rest/api/content/24183304?expand=body.storage
To convert to user, i tried following
http://example.com:8080/jira/rest/api/2/user?key=xxxxxxx
but it returned user not exists error message
{"errorMessages":["The user with the key 'xxxxxxx' does not exist"],"errors":{}}
Thanks
Hi Munjai,
Instead of using this rest call, you can use this one below to get the user key and username for the page:
confluence/rest/api/content/24183304?getpage
I hope this helps!
Cheers,
Rodrigo
Thanks Rodrigo, I got clue from above and solved it using different view https://example.com:8080/confluence/rest/api/content/24183304?expand=body.export_view
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.