Skip to content

Jira:Attachments:Re add attachments to issue from files on disk

lbonanomi edited this page Apr 27, 2020 · 1 revision
#!/usr/bin/bash

issue=$(basename $(pwd))

find . -type f | while read file
do
        echo "BASE: $file"
        filename=$(basename "$file")
        curl -D- -n -X POST -H "X-Atlassian-Token: no-check" -F "file=@$file" http://localhost:8080/rest/api/2/issue/$issue/attachments
done

Clone this wiki locally