You'll want to use the REST APIs to talk to JIRA. I often point at the documentation for those, but the examples and tutorials are often more useful - https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials - and they're part of the doc tree, so you can get to the other stuff quickly from there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.