【问题标题】:How to update JIRA issue reporter from Python如何从 Python 更新 JIRA 问题报告器
【发布时间】:2016-02-17 16:18:42
【问题描述】:

我正在尝试使用 JIRA Python API(版本 1.0.3)更新问题报告者。

我以具有完全权限的用户身份登录(使用基本身份验证),并且我正在尝试针对我自己创建的问题执行此操作。问题已成功创建,但是当我调用更新命令时,它会更改受让人而不是报告者。

有什么想法吗?我已经尝试过搜索,但无济于事。

这是我的完整代码:

jira = JIRA('http://jiraurl.com/', basic_auth=('user', 'pass'))

new_issue = jira.create_issue(project='ER', summary='summary', description='desc', issuetype={'name': 'Custom Issue Type'})

new_issue.update(reporter='new_user')

【问题讨论】:

  • 你有Modify Reporter的权限吗?
  • @Forge 是的,我有Modify Report 权限。 new_issue.update(reporter={'name': 'new_user'}) 工作,谢谢!

标签: python jira python-jira


【解决方案1】:

正确的语法应该是 new_issue.update(reporter={'name': 'new_user'})

Jira 文档为字段 assignee 指定了一个类似的示例。

【讨论】:

  • 这奇怪地给了我错误“需要记者。”
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-08-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-11-24
相关资源
最近更新 更多