I am trying to create issue programmatically so which method to use.
Use IssueService to create issues.You will find the details here: https://developer.atlassian.com/display/JIRADEV/Performing+Issue+Operations
It looks like you're new here. Sign in or register to get started.