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
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'
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 !!
It looks like you're new here. Sign in or register to get started.