我找不到任何方法在JIRA肥皂中关闭,任何想法使用哪种方法以及如何使用?
$rIssue= array();
$rIssue['resolution'] = 3;
$soap->progessWorflowAction($auth,$issue,21,$rIssue);
但是这标志着它被解决了固定而不是重复。
答案 0 :(得分:1)
这与我们之前遇到的更新问题问题相同。
这个参数的第四个参数是期望一个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);