Upload List of Versions for a Prject

Anil Mathew May 17, 2014

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

3 answers

1 accepted

0 votes
Answer accepted
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.
May 17, 2014

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

Anil Mathew May 18, 2014

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
Melina Ailin Maquieyra October 20, 2021

Hi, I need the same for version and components. There is a API that conected with another app?Thanks

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 17, 2014

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
Anil Mathew May 18, 2014

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