To use the this script you need to have the python installed on your system. In this python script, I have use the curl command to upload the attachment to JIRA issue. It is work for jira cloud instance as well as server instance.