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

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.

Suggest an answer

Log in or Sign up to answer