You haven't told us if you're using a scripting add-on in Jira.
Jira is my best guess at the application given only "issue" - you haven't told us that you mean Jira.
So, without enough information, the best I can do is assume you mean some form of external scripting, which should use the REST API to do it - see https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.