Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleAPI Change with 1.3.0 Version of App

API of add-on slightly changed with 1.312.0 version. The biggest change is that we have moved bundle related methods from CMPVersionMappingService to BundleService. Nearly all method signatures are the same. When creating your scripts please check which version of the "Configuration Management Toolkit" app you are using, and code accordingly. 

...

Code Block
languagegroovy
titleAccessing Bundles
import com.deniz.jira.versioning.CmpVersionMappingService;
import com.onresolve.scriptrunner.runner.customisers.PluginModule;
import com.onresolve.scriptrunner.runner.customisers.WithPlugin;

@WithPlugin("com.deniz.jira.versioning")
@PluginModule
CmpVersionMappingService cvService;
@WithPlugin("com.deniz.jira.versioning")
@PluginModule
BundleService bundleService;

//return cvService.getAllBundles(10000L); //Id of the project. FOR VERSIONS BEFORE 1.312.0
return bundleService.getAllBundles(1000L); //FOR VERSIONS 1.312.0+


Code Block
languagegroovy
titleAccessing Subprojects
import com.deniz.jira.versioning.subprojects.SubprojectsService;
import com.onresolve.scriptrunner.runner.customisers.PluginModule;
import com.onresolve.scriptrunner.runner.customisers.WithPlugin;

@WithPlugin("com.deniz.jira.versioning")
@PluginModule
SubprojectsService subprojects;
return subprojects.getSubprojectHierarchyOf(-1); //Returns whole project hierarhcy. pass a project id to return a subtree.

...