gpt4 book ai didi

java - 使用回溯 API - 查询错误 : incomplete intersection - Release Scope Change

转载 作者:行者123 更新时间:2023-11-30 12:03:57 24 4
gpt4 key购买 nike

我正在尝试使用 Lookback API。我想在发布期间更改所有功能。

我试过的:

LookbackQuery query = lookbackApi.newSnapshotQuery();
query.addFindClause("_TypeHierarchy", "PortfolioItem");
query.addFindClause("ObjectID", "280075838440");

Map previousValue = new HashMap();
previousValue.put("$exists", "true");
query.addFindClause("_PreviousValues.Release", previousValue);
query.requireFields("_SnapshotDate", "_SnapshotNumber", "FormattedID",
"Name", "Release","_PreviousValues.Release").hydrateFields("Release, _PreviousValues.Release");
LookbackResult resultSet = query.execute();

我有这个异常(exception):

Exception in thread "main" com.rallydev.lookback.LookbackException: Query Error: incomplete intersection between 'hydrate' clause of [Release, _PreviousValues.Release] with 'fields' clause of [_SnapshotNumber, _PreviousValues.Release, _SnapshotDate, FormattedID, Release, Name] at com.rallydev.lookback.LookbackResult.validate(LookbackResult.java:101) at com.rallydev.lookback.LookbackApi.executeQuery(LookbackApi.java:233) at com.rallydev.lookback.LookbackQuery.validateAndRun(LookbackQuery.java:243) at com.rallydev.lookback.LookbackQuery.execute(LookbackQuery.java:59) at fr.mipih.rally.TestLoockback.main(TestLoockback.java:38)

但是当我直接尝试通过:https://eu1.rallydev.com/analytics/v2.0/service/rally/workspace/9396539899/artifact/snapshot/query.js?hydrate=["Release","_PreviousValues.Release"]&start=1&pagesize=2000&find={$and: [{"ObjectID": 280075838440},{"_PreviousValues.Release": {"$exists":true}}]}&fields=["_SnapshotDate","_SnapshotNumber","FormattedID","Name","Release","_PreviousValues.Release"]然后我得到一些结果!

你能帮我看看我做错了什么吗?

最佳答案

问题在查询中 - 请将每个字段引号括起来:

query.requireFields("_SnapshotDate", "_SnapshotNumber", "FormattedID", 
"Name", "Release","_PreviousValues.Release").hydrateFields("Release", "_PreviousValues.Release");

关于java - 使用回溯 API - 查询错误 : incomplete intersection - Release Scope Change,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57355445/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com