在 JIRA SOAP 中解析为重复项

发布于 2024-12-10 02:55:08 字数 210 浏览 0 评论 0原文

我找不到任何方法在 JIRA Soap 中关闭重复项,知道使用哪种方法以及如何使用吗?

$rIssue= array();
$rIssue['resolution']  = 3;

$soap->progessWorflowAction($auth,$issue,21,$rIssue);

但这将其标记为“已解决”,而不是“重复”。

I couldn't find any way to close as duplicate in JIRA soap, any idea which method to use and how to use?

$rIssue= array();
$rIssue['resolution']  = 3;

$soap->progessWorflowAction($auth,$issue,21,$rIssue);

But this marks its as Resolved fixed instead of duplicate.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多情癖 2024-12-17 02:55:08

这与我们之前遇到的更新问题相同。

该参数的第四个参数需要一个 RemoteFieldValue 对象的数组。

试试这个:

<?php

    class RemoteFieldValue {
        var $id;
        var $values = array();

        function __construct($idIn, $valuesIn) {
            $this->id = $idIn;
            $this->values = $valuesIn;
        }
    }

    $rfv = new RemoteFieldValue('resolution', array("id" =>"3"));

    $rfvArray = array($rfv);

    $soap->progessWorflowAction($auth,$issue,21,$rIssue);


?>

或者尝试像这样修改你的示例:

// Since you are using an associative array I'll assume this is your RmeoteFieldValue object
$rIssue= array();

// The id of a remote field object is a string ("resolution") and the value needs to be an array of Strings (["3"]), even though you are only sending one
$rIssue['resolution']  = [3];

//Now you have your RemoteFieldVaue object, but the call is expecting an array of them, even if you are only sending one
$rfvArray = [$rIssue];

// Make the call with the new array as the fourth param
$soap->progessWorflowAction($auth,$issue,21,$rfvArray);

This is the same issue we had before with your update issue problem.

The fourth param of this argument is expecting an array of RemoteFieldValue objects.

Try this:

<?php

    class RemoteFieldValue {
        var $id;
        var $values = array();

        function __construct($idIn, $valuesIn) {
            $this->id = $idIn;
            $this->values = $valuesIn;
        }
    }

    $rfv = new RemoteFieldValue('resolution', array("id" =>"3"));

    $rfvArray = array($rfv);

    $soap->progessWorflowAction($auth,$issue,21,$rIssue);


?>

Or try modifying your example like this:

// Since you are using an associative array I'll assume this is your RmeoteFieldValue object
$rIssue= array();

// The id of a remote field object is a string ("resolution") and the value needs to be an array of Strings (["3"]), even though you are only sending one
$rIssue['resolution']  = [3];

//Now you have your RemoteFieldVaue object, but the call is expecting an array of them, even if you are only sending one
$rfvArray = [$rIssue];

// Make the call with the new array as the fourth param
$soap->progessWorflowAction($auth,$issue,21,$rfvArray);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文