JIRAPy Documentation 0.1.0

JIRAPy Documentation Writing Comments

Writing Comments

After setting up your application, you may need to send data back to the relevant JIRA ticket. Leaving a comment on the ticket is one such method, and can be done using the add_comment() function included with JIRAPy.

To send a comment, call add_comment() passing parameters for the comment body, and, optionally, the username and password of a user with the appropriate permissions to leave a comment:

ticketdata = requests.get("https://neko-design.jira.com/api/rest/2/issue/jirapy-1")
jiraticket = JiraTicket(ticketdata)
jiraticket.add_comment("JIRAPy Comments are quite simple to use", "sample_user", "secure_password")