Signature
Helper | nodeHelper |
Signature | createVersion(IHubIssue issue, String versionName, String description) |
Description |
Create a version in the project of the issue |
Introduced in | 1.2.0 |
Example use
Following snippet copies versions from the replica to the issue, and creates it on the fly.
issue.fixVersions = replica.fixVersions.collect { v -> nodeHelper.createVersion(issue, v.name, v.description) }
Comments
- If the project has already a version with the version name, the version itself is returned else it creates a new version in the project and return it.
- If the version cannot be created (due to permission problems), a null is returned, no error raised.