You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could we get more info on what the value of the "oid" variable is above?
The following code works for me to create an epic underneath another epic. "Epic:7632" is the oid token that refers to a specific Epic in my instance. '7632' is not easily viewable in the interface and is different from the Number (sometimes displayed by the name ID in the interface). A string visible in the interface such as 'E-01128' refers to the Number attribute of the Epic Asset Type and not the number to be used to compose the OID (object identifier) token.
OidepicContext = services.getOid("Epic:7632");
IAssetTypeepicType = services.getMeta().getAssetType("Epic");
AssetnewEpic = services.createNew(epicType, epicContext);
newEpic.setAttributeValue(epicType.getAttributeDefinition("Name"), "this is a test epic");
newEpic.setAttributeValue(epicType.getAttributeDefinition("Description"), "auto generated section");
services.save(newEpic);
Creating "Epic:01128" based on the number in "E-01128" would be an invalid OID token. To get the OID from an Asset Number like "E-01128", you would have to query for the asset OID and then proceed with the code above.
Activity
jallers commentedon May 21, 2021
Could we get more info on what the value of the "oid" variable is above?
The following code works for me to create an epic underneath another epic. "Epic:7632" is the oid token that refers to a specific Epic in my instance. '7632' is not easily viewable in the interface and is different from the Number (sometimes displayed by the name ID in the interface). A string visible in the interface such as 'E-01128' refers to the Number attribute of the Epic Asset Type and not the number to be used to compose the OID (object identifier) token.
Creating "Epic:01128" based on the number in "E-01128" would be an invalid OID token. To get the OID from an Asset Number like "E-01128", you would have to query for the asset OID and then proceed with the code above.