Upload List of Versions for a Prject

Dear All,

I have created a project and in this project I have a list of over 500 file versions that I need to input. It will be very tedious to do so manually. Is there anyway that I can import this from a text/csv/xml file?

Thanks

Anil

2 answers

1 accepted

JIRA Command Line Interface has addVersion and you can combine that with runFromCsv or one of the other run actions.

Thanks a lot. The command line Interface worked perfectly.

Would it be possible to add options to a Custom Multi Select field using the same. If so what is the commnad.

0 vote

Hello Anil,

the only way to update these versions is to develop an own plugin or use an own db script.

Usually, I don't suggest to operate on DB but, in this case, versions are stored just in one table.

Table name is projectversion and it is related to specific project through PROJECT field that contains the project id.

+-------------+---------------+------+-----+---------+-------+

| Field | Type | Null | Key | Default | Extra |

+-------------+---------------+------+-----+---------+-------+

| ID | decimal(18,0) | NO | PRI | NULL | |

| PROJECT | decimal(18,0) | YES | | NULL | |

| vname | varchar(255) | YES | | NULL | |

| DESCRIPTION | text | YES | | NULL | |

| SEQUENCE | decimal(18,0) | YES | | NULL | |

| RELEASED | varchar(10) | YES | | NULL | | - true/false

| ARCHIVED | varchar(10) | YES | | NULL | | - true/false

| URL | varchar(255) | YES | | NULL | |

| STARTDATE | datetime | YES | | NULL | |

| RELEASEDATE | datetime | YES | | NULL | |

+-------------+---------------+------+-----+---------+-------+

I suggest to test your procedure in an staging environment first.
Hope this helps,
Fabio

Thanks Fabio, I did not test this out. The Command Line interface worked for me.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

168 views 0 2
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