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: 

Using Python API - Trouble getting comment contents

Tom Hudgins
October 24, 2019

HI,

I'm using the JIRA Python API - no problem getting issues and all that. Now I want to get the set of comments from my issues. If I do this:

comments = jira.comments('UPGRD-68')

I get a list of comment ids. Let's say one of them was 1234

From the docs, it seems I should be able to do this:

comment = jira.comment('UPGRD-68',1234)

When I do that, all I get in comment is the comment id (1234). What am I missing here?

I see that I can probably also get an issue object and access it that way but why doesn't this way work? 

My JIRA version is 8.2.4

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Tom Hudgins
October 24, 2019

Sorry, didn't do enough digging first. I see that the object I'm getting back has additional properties. Didn't realize that from the docs. I think I have what I need now.