13 Micro changes
* Changed functions from `csv_writer` to `file_writer` and `csv_reader` to `file_reader`
* added new arguments `content` to both `file_writer` and `file_reader` functions.
* Transfer a file across instances or download a file to your local drive from an Instance
python
from jiraone import LOGIN, PROJECT
from threading import Thread
user = "email"
password = "token"
link = "https://yourinstance.atlassian.net"
LOGIN(user=user, password=password, url=link)
if __name__ == '__main__':
the output of the file would be absolute to the directory where this python file is being executed from
jql = "project%20in%20(COM%2C%20PYT)%20order%20by%20created%20DESC"
the below method, helps you download a report of a list of files per issue on a project or on projects
Thread(target=PROJECT.get_attachments_on_projects(query=jql)).start()
afterwards, you can use the below method to move attachments across instances without downloading it
PROJECT.move_attachments_across_instances()
if you're using your own file structure say a csv file, you need to identify the index of the attachment
for this, 3 keyword args are use key=0, attach=1, and file=2 -> all requires an integer value.
PROJECT.move_attachments_across_instances(attach_file="new.csv", key=0, attach=1, file=2)
To download an attachment locally use
PROJECT.download_attachments(download_path="Download", attach=1, file=2)