Skip to content

Getting issue creating new Epic under Epic  #65

@bansmani

Description

@bansmani

I am facing some challenges creating assets (Epic) in version one in our sandbox environment using the below example code.

https://community.versionone.com/Digital.ai_Agility_Integrations/Developer_Library/Get_an_SDK/Java_SDK/Creating_Assets

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions