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

Accepted Answer
0 votes

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 votes

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,693 views 2 7
Join discussion

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