Forums

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

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

Sree Deepak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champion
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