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
Community moderators have prevented the ability to post new answers.
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, v3This way it will create all versions in your project.
Let me know if this helps !!
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.