使用 Jira4R ruby gem,为什么我可以更新一些自定义字段值和标准字段值,但不能更新全部?
对于 Jira 中创建的问题,我似乎无法更新 Ruby 代码中的状态或解决方案。我还有几个自定义字段,其中大部分我可以更新,但有一个我不能更新。我浏览了 RubyGems 文档和 Atlassian 的文档,以及许多其他论坛和博客,但无济于事。这是否与它们位于与我可以更新的字段不同的工作流程中有关?
以下是我尝试更新特定票证字段的方式(jira 是我的连接):
ticket = jira.getIssue('123')
person=Jira4R::V2::RemoteFieldValue.new("customfield_678", "smithj")
jira.updateIssue(ticket.key, person)
这同样适用于某些自定义字段和某些标准字段。我没有收到错误。票证刚刚返回,就好像我已经更新了该字段,但它仍然具有旧值。有没有人遇到过这个问题,我的解决方案是什么?谢谢。
For issues created in Jira, I cannot seem to update either Status or Resolution in my Ruby code. I also have several custom fields, most of which I can update, but there is one I cannot. I have looked through the RubyGems documentation and Atlassian's documentation, as well as lots of other forums and blogs to no avail. Could it have something to do with them being in separate workflows from the fields I can update?
Here is how I am attemting to update a particular ticket's fields (jira is my connection):
ticket = jira.getIssue('123')
person=Jira4R::V2::RemoteFieldValue.new("customfield_678", "smithj")
jira.updateIssue(ticket.key, person)
Again this works for some custom and some standard fields. I do not get an error. The ticket just comes back as if I have updated the field but it still has to old value. Has anyone encountered this and what is my solution? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
状态或解决方案需要使用以下方式完成:
jira.progressWorkflowAction(ticket.key, status.id, [远程字段数组]) 其中 status.id = 您要转换到的新解决方案的 ID。
Status or resolution needs to be done using:
jira.progressWorkflowAction( ticket.key, status.id, [remote field array]) where status.id = the id of the new resolution you want to transition to.