Hi all, I'm new to the community and having used JIRA as a User for a while acting on individual issues, I am only just now doing admin type tasks with workflows and bulk changes.
I am currently using JIRA software in a project for document edits where a completed issue will have 3 files; a pdf and two .dot word template files for the versions pre and post change.
When an issue (doc) reaches the end of the worklow, prior to being DONE I need to transfer each final .dot file to a Windows folder. I have about 400 of these and wondering if there is an easy way to do this?
I did some reading and it seems there's no free way to have an attachment field to drag the final file into, and given I'm in enterprise getting this is just too complex to be feasible in the timeframe I'm working with.
Any help would be greatly appreciated to avoid doing these one by one from each issue.
Many thanks, Brendan
Hi @Brendan Sheppard and welcome to the Community!
If you download a few Unix tools for Windows, or can get access to a Mac or Linux machine, there is a "shell script" that can download all attachments for a project (based on a JQL query).
The original version from an Atlassian Support Engineer puts them all in a single folder:
https://bitbucket.org/snippets/atlassiansupportprojects/nedyBb/download-files-attached-to-the-issues
I made some minor changes that creates a separate folder for each issue key (ex: ABC-123) and downloads the attachments into those folders:
https://gist.github.com/darryllee/22ea98ccf639c303813a3ad4a2ad3480
It's been a long time since I've done it, but I used to get access to Unix tools via Cygwin.
But I guess there's now an "official" way to get tools like this, using Windows Subsystem for Linux (WSL).
One tool that both scripts use is jq, and incredibly powerful parsing tool. Unfortunately I don't think it comes with Cygwin or WSL, but I found some instructions on how to install it: https://archive.azurecitadel.com/prereqs/wsl/
And for Cygwin: https://stackoverflow.com/questions/52761772/how-to-process-json-in-bash-script-in-windows-environment
OH, and if by chance you know Python or something, you ought to be able use those scripts above to guide you towards writing a script that probably doesn't need to use things like curl, jq, etc.
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.