-
-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate comment documentation is up to date. #358
Comments
I do not know but you can get comments
|
@mramanathan I know this is old but for historical sake, the "comment()" method returns a Comment object. If you want the text, you need to get the "body" property:
|
Genius! The cmt.body is exactly what I was looking for! |
I tried above code it did not work, hence tried as follow way. I get error at last line of snippet. jql='project = TMP AND key = TMP-281 ORDER BY createdDate ASC' |
@hrm232 what's the error you're getting with your code? issue.fields.comment.comments will return a list of comment objects (one object for each comment in the issue)...or an empty list if there aren't any comments in the issue. |
@fender4645 I'm hitting the same error as @hrm232 on
Versions (I'm on
|
I'm getting the same error as @alexmgr with I did find a workaround. Using
Yields an object that's similar to what should be in the object. |
@hrm232 Same issue but I think I figured it out. When you do your jira.search_issue you have to specify fields to pull with it, in this case your comments fields. Try this: jql='project = TMP AND key = TMP-281 ORDER BY createdDate ASC' No more errors, hope this helps. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
After successfully completing basic authentication, I setup a jira object to the production server.
On the jira object, while trying to extract the comment text using the id of that comment, instead of text, command returns the comment id.
Referred to the docs for the usage, it looks to be ok.
Tried this from jirashell.
In [70]: cmnt = jira.comment('SREC-255', '2590283')
In [71]: print cmnt1
Out[71]: <JIRA Comment: id=u'2590283'>
What's wrong with the usage here ?
The text was updated successfully, but these errors were encountered: