The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I filter public only comments on expanded section in a Request

Aaron Fincher
August 13, 2018

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Mauricio Karas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 21, 2018

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

TAGS
AUG Leaders

Atlassian Community Events