It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using Python API - Trouble getting comment contents

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you