Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add the bulk version into a project?

Harshada H Biche
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2023

Hello Team, 

Do we have any instructions to add the bulk version in a project without using script runner or manually.

This process required in on premise not in cloud.

Please advise.

Thank you

Harshada Biche

2 answers

1 vote
Deepak Jain
Community Champion
June 13, 2023

Hi @Harshada H Biche 

You can use a simple trick with Jira CSV importer to import multiple versions in a project. Create one test issue in your project and import all the versions to this issue:

IssueKey, IssueType, Summary, FixVersion, FixVersion, FixVersion
Test-1, bug, "issue summary", v1, v2, v3

 This way it will create all versions in your project.

Let me know if this helps !!

1 vote
Radek Dostál
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.
June 13, 2023

That's where REST API comes to the rescue: https://docs.atlassian.com/software/jira/docs/api/REST/9.9.0/#api/2/version-createVersion

Remember you need to use authentication in requests - see https://confluence.atlassian.com/display/ENTERPRISE/Using+personal+access+tokens

 

And an example..

curl -X POST \
-H 'Authorization: Bearer <MY_PAT_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{"description": "An excellent version", "name": "New Version 1", "archived": false, "released": true, "releaseDate": "2010-07-06", "userReleaseDate": "6/Jul/2010", "project": "PXA", "projectId": 10000}' \
-s '<baseurl_of_my_instance>/rest/api/2/version'

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events