createVersion

    Signature

    HelpernodeHelper
    SignaturecreateVersion(IHubIssue issue, String versionName, String description)
    Description


    Create a version in the project of the issue

    Introduced in1.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 will create 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