Need help on Imporating Attachement from .Csv using Jiracli.


I have some attachement in my C:\ drive. I want import issue (Story) along with attachements.

For each story there is unique attachement.

Is it possiable i add New Column "Attchement" in .csv file and in every row give the path of file that going to be associate with the issu.

e.g C:\KP\My.Jpg

And in property file (field.Attachment = Attachment)

Currently when i am importing giving me message "Unknown flag attachment"

Please correct me !

Thanks a lot for your support


Jira 6.0

Cli : 3.8.0



6 answers

Attachments cannot be added on the same line as creating an issue. You can either follow this example or have a separate csv file to do all the attachments - the difficulty there is associating the attachment with the issue key it is intended for.

Please also let me know the changes i have to do in curreent command :

jira.bat --server xxxx --password "xxxx" --action runFromCsv --file import.csv --propertyFile --common --continue

Thanks a lot for you help!


Thanks Bob!

Can you please help me on .CSV file, i mean column name i have to include / remove from current .csv file that i am using for normal Issue import.

Currently following column in my .csv file to import the issue

Action (CreateIssue)

Type (Story)

Objective (ABC)

Component (Test)

Status (Open)

Priortys (Major)

Labels (Test)

Assignee (KP)

Please Help !


Follow the example . The current command should work. You will need to add the file column.

Hi Bob,

Apart from "file" column what other column i have to add in .csv file. Please also let me update if there is any change in current command.


Kailash Pathak

Look at the addAttachment action and the parameters that is provides.

Hi Bob,

Below is my .csv file that i am imporating :

<colgroup><col width="80"> <col width="106"> <col span="2" width="64"> <col width="324"> </colgroup>
Action Type Issue Project file
CreateIssue AddAttachment Eeir-2054 Eeir C:\jiraCliLatest\1.xlsx
CreateIssue AddAttachment Eeir-2065 Eeir


Hi Bob,

My import propertry file is below for above .csv file

field.Type = Type
field.issue = issue
field.project = Project
field.file = file

Please correct me !


Thnaks Bob.

I am able to import the attachement

but i am facing problem in updating Component i am using "updateComponent" action .

Following field in my .csv file

Action Issue Project Component
updateComponent XX-2054 XX OPR Login
updateComponent XX-2065 XX Finalist Login

And fiels has following fields :

field.issue = issue
field.project = Project
field.Component = Components

Please update me if i am missing any step.


What problem are you seeing? I would note that your update isn't changing anything for the component.


I am not able to import data of Components.

After executing the .csv file the command message "This funcation require a non-blank value for parameter : issue"


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,921 views 19 22
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you