Eg: If I make a cql search for a particular user id mention, can I somehow fetch the user email in the same API call ?
http://localhost:8090/rest/api/content/search?cql=(mention != 'anonymous' and type='comment' and created>now("-15h") )&expand=history,version
@sabzx Simple answer is no. The API you are using here is for content, and you will only get user name and user key as users information.
Thanks @DPKJCurrently the API does not return any information about the mentionee. It only has information about the mentioner. Is there anyone way to get the mentionee's information?{"results": [{"id": "65635","type": "comment","status": "current","title": "Re: Product","body": {"_expandable": {"editor": "","view": "","export_view": "","styled_view": "","storage": "","anonymous_export_view": ""}},"extensions": {"location": "footer","_expandable": {"resolution": ""}},"_links": {"webui": "/display/PROD/Product?focusedCommentId=65635#comment-65635","self": "http://localhost:8090/rest/api/content/65635"},"_expandable": {"container": "/rest/api/content/65591","metadata": "","operations": "","children": "/rest/api/content/65635/child","restrictions": "/rest/api/content/65635/restriction/byOperation","history": "/rest/api/content/65635/history","ancestors": "","version": "","descendants": "/rest/api/content/65635/descendant","space": "/rest/api/space/PROD"}},],"start": 0,"limit": 25,"size": 2,"cqlQuery": "(mention != 'anonymous' and type='comment' and created>now(\"-72h\") )","searchDuration": 27,"totalSize": 2,"_links": {"self": "http://localhost:8090/rest/api/content/search?expand=body&cql=(mention != 'anonymous' and type='comment' and created>now("-72h") )","base": "http://localhost:8090","context": ""}}
{"results": [{"id": "65635","type": "comment","status": "current","title": "Re: Product","body": {"_expandable": {"editor": "","view": "","export_view": "","styled_view": "","storage": "","anonymous_export_view": ""}},"extensions": {"location": "footer","_expandable": {"resolution": ""}},"_links": {"webui": "/display/PROD/Product?focusedCommentId=65635#comment-65635","self": "http://localhost:8090/rest/api/content/65635"},"_expandable": {"container": "/rest/api/content/65591","metadata": "","operations": "","children": "/rest/api/content/65635/child","restrictions": "/rest/api/content/65635/restriction/byOperation","history": "/rest/api/content/65635/history","ancestors": "","version": "","descendants": "/rest/api/content/65635/descendant","space": "/rest/api/space/PROD"}},],"start": 0,"limit": 25,"size": 2,"cqlQuery": "(mention != 'anonymous' and type='comment' and created>now(\"-72h\") )","searchDuration": 27,"totalSize": 2,"_links": {"self": "http://localhost:8090/rest/api/content/search?expand=body&cql=(mention != 'anonymous' and type='comment' and created>now("-72h") )","base": "http://localhost:8090","context": ""}}
It looks like you're new here. Sign in or register to get started.