Your code needs to perform REST calls, we can't help you with that, as you could be doing anything.
But the calls it needs to make to JIRA are pretty standard. Start at https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis to get a feel for them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.