How can I use --autoVersion with the Jira Command Line Interface and --runFromCsv?

Tilmann Brenk July 17, 2011

I want to import issues from a CSV file using the command line interface.

This command line creates the issue and adds the version if necessary.

jira --action createIssue --autoVersion --project "IMP" --type "task" --summary "Test" --fixVersions "3.999"

But if I want to run it from a csv, I cannot get the right syntax. This is what I tried:

action, project, issue, Type, issue Type, summary, Date, assignee, description, fixVersions, autoVersion
CreateIssue, IMP, ,task, bug, "Test Summary",31.10.2011, Brenk, "Test Description", 3.2,

This gives the error "Version '3.2' is not valid for project with key: IMP"

So how should I specify this parameter --autoVersion in a csv file?

1 answer

1 accepted

0 votes
Answer accepted
Tilmann Brenk July 21, 2011

The answer was given by Bob Swift on the Jira CLI project page.

https://studio.plugins.atlassian.com/wiki/display/JCLI/JIRA+Command+Line+Interface

Use --common "--autoVersion" on the runFromCsv command for now. This will apply to all rows. Row specific switch settings are missing - JCLI-169.

I tried it and it does what I need.

Suggest an answer

Log in or Sign up to answer