有没有办法在使用SOAP API创建或更新JIRA票证时为票证设置"标签"字段?在WSDL中搜索"label"没有显示任何内容,并且当使用我知道已设置标签的API获取票证时,结果中没有迹象表明存在标签.
Eve*_*zon 10
您可以使用字段ID"标签"更新现有问题的标签.这是我正在使用的代码(C#):
public void LabelIssue(string issueKey, string label)
{
RemoteIssue issue = jiraSoapService.getIssue(token, issueKey);
List<RemoteFieldValue> actionParams = new List<RemoteFieldValue>();
RemoteFieldValue labels = new RemoteFieldValue { id = "labels", values = new string[] { label } };
actionParams.Add(labels);
jiraSoapService.updateIssue(token, issue.key, actionParams.ToArray());
}
Run Code Online (Sandbox Code Playgroud)
我很确定 JiraSoapService 中没有方法可以做到这一点
http://docs.atlassian.com/rpc-jira-plugin/latest/com/atlassian/jira/rpc/soap/JiraSoapService.html
〜马特
归档时间: |
|
查看次数: |
3826 次 |
最近记录: |