Jira Soap api:无法更新任何问题
嗨,我已经在谷歌上搜索了这个问题相当多的时间,但找不到答案。也许这里有人可以帮助我。
我正在使用 SOAP 与本地安装的 JIRA 进行交互。我对获取问题、添加工作日志、推进工作流程、创建问题没有任何问题。但是当我尝试编辑问题时什么也没有发生。
基本上,当我对 updateIssue 进行 SOAP 调用时,它不会出现错误,但返回的问题不包含我发送的任何更改。 (但是,包含上次更新的时间戳的“已更新”字段将相应更改)我认为这是一个权限问题,但如果我在以无权编辑此问题的用户身份登录时尝试相同的更新调用,我会收到错误消息。我完全迷失在这里了。我检查了日志文件,但也找不到任何内容。
有谁知道为什么会发生这种情况?或者我如何进一步排除故障/调试?
Hi I've googled this problem for quite a bit and couldn't find the answer. Perhaps someone out here could help me.
I'm using SOAP to interact with our local installation of JIRA. I don't have any problem with getting issues, adding work logs, progressing workflow, creating issues. But when I try to edit an issue nothing happens.
Basically when I make a SOAP call to updateIssue it goes without errors but returned issues does not contain any changes I've sent. (however "updated" field which contains the timestamp of the last update will change accordingly) I thought it is a permissions problem but if I try same update call while logged in as a user without permissions to edit this issue I would get error saying that. I'm completely lost out here. I've checked log files but couldn't find anything out there either.
Does anyone have an idea why this could happen? Or how can I troubleshoot/debug it further?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我现在感觉很愚蠢。经过半天的尝试找出它不起作用的原因后,我终于研究了 WSDL :)
很明显,我发送对问题的更改的格式是不正确的。 PHP 中第三个参数的正确结构如下所示:
让我偏离路线的是,为了创建一个问题,像这样的简单结构就可以解决问题:
Well i'm feeling stupid now. After half a day of trying to figure out why it doesn't work i finally looked into WSDL :)
And surly enough the format I was sending changes to an issue was incorrect. The correct structure for 3rd parameter in PHP looks like that:
The thing that throwed me off course was that in order to create an issue a simple structure like that does the trick: