如何通过AtTask API查找业务案例的目标数据?

时间:2015-04-06 00:57:01

标签: attask

我正在尝试从AtTask(现在称为WorkFront)检索有关项目管理的数据,以生成自定义报告。一个问题困扰了我整整一周 - 在哪里检索与商业案例目标相关的数据?

我所做的是阅读他们的API文档https://developers.attask.com/api-docs/api-explorer/,但我没能在Project objCode下找到它。

然后我查看了JSON格式的元数据,发现目标数据可能在Category / CTGY或CategoryParameter / CTGYPA中,因为目标是用户在创建新项目时输入的自定义数据:

data: [
{ID: "ca38d71a802c453ee0440003baf6d589",
name: "DL-DLTS Form",
objCode: "CTGY",
catObjCode: "PROJ",
customerID: "ca38d7179d8f453ee0440003baf6d522",
description: "Custom data for Project Template, New Project Request and New Project creation",
enteredByID: null,
extRefID: null,
groupID: "ca38d7181120453ee0440003baf6d589",
hasCalculatedFields: false,
lastUpdateDate: "2009-05-08T14:02:30:120-0400",
lastUpdatedByID: "ca38d71802bd453ee0440003baf6d589",
otherGroups: [{ID: "ca38d7181120453ee0440003baf6d589",
name: "Default Group",
objCode: "GROUP"}],
categoryParameters: [
{objCode: "CTGYPA",
categoryID: "ca38d71a802c453ee0440003baf6d589",
displayOrder: 2,
isInvalidExpression: false,
isRequired: false,
parameterGroupID: "ca38d718d6c7453ee0440003baf6d589",
parameterID: "ca38d718d2d7453ee0440003baf6d589",
rowShared: false,securityLevel: "E"
},
{objCode: "CTGYPA",
categoryID: "ca38d71a802c453ee0440003baf6d589",
displayOrder: 1,
isInvalidExpression: false,
isRequired: true,
parameterGroupID: "ca38d718d6c7453ee0440003baf6d589",
parameterID: "ca38d718d2f8453ee0440003baf6d589",
rowShared: false, securityLevel: "E"}]}]}

此外,在我查看项目报告的HTML代码后,我可以找到目标内容,我猜想目标必须像某些其他objCode一样,因为目标也有ID:

<li class=" goal" data-id="53ac55e3001e83bd5ff7b289795c9d8a">
<span class="importance">Highest</span>
Ensure we still obtain the same type of report information currently provided by the BMC Coradiant TrueSight appliances. </li>

因此,总而言之,我在哪里可以从AtTask API中检索数据?谢谢!

1 个答案:

答案 0 :(得分:0)

我刚刚发现目标数据在v4.0 API中可用,通过在API中使用SCORE objCode:

https://nyu.attask-ondemand.com/attask/api/v4.0/score/search?fields=scoreCardQuestions

目标基本上是scoreCardQuestions的名称!