how can i attach files to created issues quickly?

gonzalo zegarra February 15, 2016

hi

i need to attach excel files to 100 issues tha i've created.

how can i do quickly? with jelly runner?

i tried with this:

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">

<jira:AttachFile key="PRO-304" filepath="D:\Perfiles\17550001\Documents\Formato_Solicitud_JIRA.xlsx" option="add"/>

</JiraJelly>

 

but JIRA shows me that message :

Extra Information: [hide] 

Error: <JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">
Exception: org.apache.commons.jelly.JellyTagException: null:2:0: Unable to make temporary copy of file.

thx

2 answers

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2016

JIRA Command Line Interface (CLI) and use the addAttachment. Something like:

--action addAttachment --issue XXX-1 --file "mydata.xlsx"
0 votes
Udo Brand
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2016

You could use the csv importer

see https://confluence.atlassian.com/jira/importing-data-from-csv-185729516.html

and look for importing attachment. (also look for update existing issues)

Suggest an answer

Log in or Sign up to answer