Confluence has been updated to version 6.15.9

Back to  nodeHelper


JIRA ON-PREMISE JIRA CLOUD ZENDESK GITHUB

Signature

HelpernodeHelper
Signature

getVersion(String versionName, Project project)

getVersion(String versionName)

Description


Returns a version belonging to the project. Typically used to map the remote issue version to the local issue version.
Returns null if the versionName is not found in the version map of the project

Introduced in0.8

The Signature introduced in 0.8 works for Github until version 5.4.0.


For Github 5.4.0 and higher

HelpernodeHelper
Signature

getVersion(issue: IHubIssue, versionName: String) 

Description


Returns a version belonging to the project. Typically used to map the remote issue version to the local issue version.
Returns null if the versionName is not found in the version map of the project

Introduced in5.4.0

Example use

// transfer all the versions
for (version : replica.affectedVersions) {
    issue.affectedVersions += nodeHelper.getVersion(version,issue.project)
}

Example use in Github 5.4.0

// transfer all the versions
for (version : replica.affectedVersions) {
    issue.affectedVersions += nodeHelper.getVersion(issue,version)
}

See Also



Back to  nodeHelper