0

Is it possible to convert a Request to a Project via the API? Right now I'm manually creating a project and then updating the Resolving Object ID on the original Issue. However, I've got a bunch of custom fields that I'm going to have to copy over as well. Since AtTask has this functionality built-in, I was wondering if there is a way to access that functionality via the API (perhaps through one of the Actions?) I'm still relatively new to the API, so I'm still learning. Any help or suggestions would be appreciated.

4

2 回答 2

0

不幸的是,我没有在 API 中看到这种能力。我希望在行动中看到一些东西。

我可以通过包含resolvingObjCode 和resolvingObjID 来做到这一点。

下面是一个例子。

JToken projectFromTemplate = client.Create(ObjCode.PROJECT, new { name = onboardingRequestsToken.Value<string>("name"), groupID = userGroupID, templateID = "5468b86c00039ec521cf4042a0cd0419"});

string projectID = projectFromTemplate["data"].Value<string>("ID");

JToken updIssue = client.Update(ObjCode.ISSUE, new { id = onboardingRequestsToken.Value<string>("ID"), resolvingObjCode = "PROJ", resolvingObjID = projectID});
于 2014-11-19T15:53:29.767 回答
0

AtTask 于 2014 年 8 月初发布的新软件添加了将请求转换为项目的功能。我建议使用这种新方法来完成您所需要的。

您只需单击问题操作-> 转换为项目。

有一种方法可以通过 api 将请求转换为项目,但是编写它的代码可能很长,因为涉及的内容很多。我不知道您可以执行任何自动 api 调用来让 AtTask 的软件为您执行此操作。

这将涉及将包括自定义字段在内的每个字段映射到项目,然后更新请求。

于 2014-08-19T19:39:13.950 回答