question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validate comment documentation is up to date.

See original GitHub issue

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 ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
eschwaigercommented, Nov 8, 2018

@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’ issues = jira.search_issues(jql, 0, 1000, fields=‘comments’) for issue in issues: print(issue.fields.issuetype.name) print(issue.fields.reporter.displayName) print(issue.fields.comment.comments)

No more errors, hope this helps.

1reaction
fender4645commented, Aug 1, 2017

@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:

cmnt = jira.comment('SREC-255', '2590283')
print cmnt.body
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to validate documentation comment tags as part of the ...
We write documentation tags as part of our development process. It would be very useful being able to validate these code tags when...
Read more >
040-040 MetaServer Validate – Validate Date and Time
We need to extract and validate the Invoice Date of each document, ... is a full date that consists of a date AND...
Read more >
Validate function in Power Apps - Power Platform
In this article​​ The Validate function checks whether the value of a single column or a complete record is valid for a data...
Read more >
HOWTO: Validate a Layout Content
Open your layout · Click on Switch to code button at the bottom of the page, · In the validate function, replace: Copy...
Read more >
Client-side form validation - Learn web development | MDN
See also the source code. Note: <input type="number"> (and other types, such as range and date ) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found