我正在尝试获取故事项目的优先级和状态。我正在尝试以下但我没有得到任何结果。请注意,我在下面的代码中成功获取了名称和描述。只是优先级和状态没有返回任何值。
IAssetType scopes = _metaModel.getAssetType("Story");
IAttributeDefinition NameAttribute = scopes.getAttributeDefinition("Name");
IAttributeDefinition DescriptionAttribute = scopes.getAttributeDefinition("Description");
IAttributeDefinition PriorityAttribute = scopes.getAttributeDefinition("Priority");
IAttributeDefinition StatusAttribute = scopes.getAttributeDefinition("Status");
Query query = new Query(scopes);
query.getSelection().add(NameAttribute);
query.getSelection().add(DescriptionAttribute);
query.getSelection().add(PriorityAttribute);
query.getSelection().add(StatusAttribute);
QueryResult result = _services.retrieve(query);
谢谢布山