Thing documentation will help you find the relevant methods. You will have to rewrite your code to use the appropriate REST API.
https://developer.atlassian.com/jiradev/api-reference/jira-api-status/jira-rpc-services/jira-soap-to-rest-migration-guide
It looks like you're new here. Sign in or register to get started.