Description¶
Downloads the attachments of the Jira issue (manuscript, forms, and so on) into the repository root with tools/jira_download_attachments.py, then adds and commits the files that were downloaded. The Jira ticket is read from config.yml; when it is not set there, it is looked up from the openICPSR ID and written back to config.yml.
Usage¶
./automations/30_download_commit_jira_attachments.sh [--list] [--filter PATTERN]--list- List the attachments; do not download or commit.--filter PATTERN- Download only files whose names match, for examplemanuscriptor.pdf.
Environment Variables¶
JIRA_USERNAME,JIRA_API_KEY- Required.
See jira_download_attachments.py for details.