【问题标题】:RALLY API: Could not set value for Tags: Cannot use type ObjectReference in attribute TagsRALLY API:无法为标签设置值:无法在属性标签中使用类型 ObjectReference
【发布时间】:2013-02-20 20:40:54
【问题描述】:

我正在尝试在 Rally 中创建一个新故事。

使用:https://rally1.rallydev.com/slm/webservice/1.40/RallyService 下面是代码

    var parentStory = rallyService.query(Workspace, Projs["xxx"], true, true,                "HierarchicalRequirement", query, "", true, 1, 20).Results[0] as HierarchicalRequirement;
    var tag = new Tag[1];
    tag[0] = new Tag()
    {
       Archived = true,
       ArchivedSpecified = true,
       CreationDate = DateTime.Now,
       CreationDateSpecified = true,
       Name = tagName,
    };

    var childStory = new HierarchicalRequirement
    {
      Name = feedback.FeedBackSubject,
      Description = feedback.FeedBackDescription,
      Parent = parentStory,
      Owner = parentStory.Owner,
      Tags = tag
    };
    return rallyService.create(childStory);

我收到以下错误:无法为标签设置值:无法在属性标签中使用类型 ObjectReference

谢谢

【问题讨论】:

    标签: soap rally


    【解决方案1】:

    我通常使用 REST 端点而不是 SOAP,但我猜您需要先创建标签,然后才能在您正在创建的故事中引用它。我认为错误是由于数组中传递的标签没有引用。

    【讨论】:

    • 谢谢凯尔!这解决了问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-27
    • 2013-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多