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();
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.