I'm hitting the following endpoint:
https://[domain]/rest/servicedeskapi/request/[requestid]?&expand=comment
Which is giving me the details of the Help Desk Ticket (Request) and is including the comments expanded.
Is there a way in the initial call to only include comments that are public only?
The data return (and the public flag is in the following structure):
comments
- values [x]
- public = true/false
I can obviously do it after receiving the data, but ideally I'd like it to happen as part of the query.
Any thoughts?
Thanks
Hey, Aaron!
I tried to find another endpoint(by intercepting all the requests for Jira) for the issue request, maybe something used internally by Jira that is not documented in the API, but I was not able to find anything.
There's this other REST call for comments:
GET /rest/api/2/issue/{issueIdOrKey}/comment
But this also doesn't have a parameter to refine the result and it doesn't have a field to differentiate internal and public comments.
So, unfortunately, the only workaround for this is, as you've mentioned, is to filter the results after receiving all the data.
Kind regards,
Maurício Karas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.