-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I am facing some challenges creating assets (Epic) in version one in our sandbox environment using the below example code.
We are getting follow exception (excluding the complete stack trace)
java.lang.RuntimeException: com.versionone.apiclient.exceptions.APIException: Error processing response
Caused by: com.versionone.apiclient.exceptions.APIException: Error processing response
Caused by: com.versionone.apiclient.exceptions.OidException: Invalid OID token:
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
My code
Oid id = services.getOid("Epic:" + oid);
IAssetType epicType = services.getMeta().getAssetType("Epic");
Asset newEpic = services.createNew(epicType, id);
newEpic.setAttributeValue(epicType.getAttributeDefinition("Name"), "this is a test epic");
newEpic.setAttributeValue(epicType.getAttributeDefinition("Description"), "auto generated section");
services.save(newEpic); // <----- throws exception here
Metadata
Metadata
Assignees
Labels
No labels