How do I get only the External comments using Python API?

Sree Deepak November 30, 2022

I am working on a Project in which I need to parse through multiple comments and get the latest external comment and details about it. But I couldn't find any way using the python API. Is there a way to get the external comments ?

 

1 answer

0 votes
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 1, 2022

Hi @Sree Deepak -- 

If you're talking about External comments, can I presume you're talking about a Jira Service Management project with Internal and External Comments?

If so, then I think you'll need to try and find comments where the attribute jsdPublic is true.

So you'll probably need to iterate through all the comments on an issue, and only display/do whatever you need to do:

 if comment.jsdPublic == true:

Please let us know if that works, and share your code and any errors if you have them.

Suggest an answer

Log in or Sign up to answer