简体   繁体   English

吉拉。 通过 JSON 导入时如何设置问题创建者?

[英]Jira. How to set the issue creator when importing via JSON?

when I import a issue via JSON, Jira sets the creator of the issue to the user who imported the issue, and not to whom has reported it.当我通过 JSON 导入问题时,Jira 将问题的创建者设置为导入问题的用户,而不是将问题报告给谁。

Is there a field where I can set the creator?是否有可以设置创建者的字段?

Here is my sample JSON file.这是我的示例 JSON 文件。 Pastebin糊状

Edit: And here is a picture of what I mean.编辑:这是我的意思的图片。 I (Sascha) am only the importer and not the creator.我(Sascha)只是进口商而不是创造者。 "vanderma" (Meer) should be the creator. “范德玛”(Meer)应该是创造者。
在此处输入图片说明

Your JSON has:您的 JSON 具有:

"assignee": "vanderma",
"reporter": "vanderma",

Just change the reporter value in the JSON to the user that actually reported it and you're done :)只需将 JSON 中的reporter值更改为实际报告它的用户,您就完成了 :)

help someone who search this question from google.帮助从谷歌搜索这个问题的人。

Jira has set this issue invalid: https://jira.atlassian.com/browse/JRASERVER-62308 Jira 已将此问题设置为无效: https : //jira.atlassian.com/browse/JRASERVER-62308

Oswaldo Hernandez (Inactive) added a comment - 24/Aug/2016 7:14 AM Oswaldo Hernandez (Inactive) 添加了评论 - 24/Aug/2016 7:14 AM

Hi Ismael Olusula Jimoh,嗨,伊斯梅尔·奥卢苏拉·吉莫,

This is expected and by design.这是预期的和设计的。 The issue creator is always set to the logged in user who actually performed the "issue create" operation (in this scenario via import) and should be immutable.问题创建者始终设置为实际执行“问题创建”操作(在本场景中通过导入)的登录用户,并且应该是不可变的。

Regards,问候,

Oswaldo Hernández.奥斯瓦尔多·埃尔南德斯。 JIRA Bugmaster. JIRA 虫师。 [Atlassian]. [阿特拉斯]。

and there is a walkaround method: update your jira database directly.并且有一种解决方法:直接更新您的 jira 数据库。

update jiraissue set creator=reporter;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM