I'm looking for information on how to split a string.
This method used to work and return the value that I can use to query our Asset Schema:
def hardwareAssetKeyAbrv = hardwareAsset.toString().substring(hardwareAsset.toString().indexOf("(") + 1).replace(")","").replace("[","").replace("]","");
Just guessing here, but something for you to try ...
def hardwareAssetKeyAbrv = hardwareAsset.getId();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.