Redmine:通过 GET 请求创建问题
在 JIRA 中,可以通过简单的 GET 请求创建新问题: http://confluence.atlassian.com/display/JIRA/Creating+Issues+via+direct+HTML+links。
此类链接的一个简单示例:
“http://jira.atlassian.com/secure/CreateIssueDetails!init.jspa?pid=10420&issuetype=3&summary=say+hello+world”
这将在PID=1042 的项目,摘要为“Say Hello world”。
是否有Redmine插件/api允许这样的用例? REST API 对我来说不方便,因为我希望允许用户通过电子邮件中发送的链接创建新问题(使用预填充的数据),并且我不想使用 JavaScript 来完成该工作(发送 REST json/ XML 数据)。
编辑: 据我所见(http://www.redmine.org/projects/redmine/wiki/ RedmineReceivingEmails)Redmine提供了一个用于提交问题的电子邮件API,这将是一个部分解决方案。我可以添加一个“mailto:”链接来预先填充消息的内容。 该解决方案需要额外的电子邮件,因此我仍然希望有一个帖子链接解决方案。
In JIRA it is possible to create new issues through a simple GET request: http://confluence.atlassian.com/display/JIRA/Creating+Issues+via+direct+HTML+links.
A simple example of such a link:
"http://jira.atlassian.com/secure/CreateIssueDetails!init.jspa?pid=10420&issuetype=3&summary=say+hello+world"
This would create a new issue in project with PID=1042 with summary "Say Hello world".
Is there Redmine plugin/api which allows for such a use case? The REST API is inconvenient for my use since I would like to allow users to create new issues (with pre filled data) through a link sent in email and I don't want to use JavaScript for the job (to send the REST json/xml data).
EDIT:
From what I see (http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails) Redmine provides an email API for submitting issues, this would be a parital solution. I would be able to add a "mailto:" link which would pre fill the content of the message.
This solution requires additional emails so still I would prefer to have a post link solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我已经实现了一个基本的插件来满足我的需求。您可以在以下位置找到它:
http://code.google.com/p/redmine-post-link-插件/
I have implemented a basic plugin which fulfills my needs. You can find it at:
http://code.google.com/p/redmine-post-link-plugin/
您还可以有一个实际发送电子邮件的服务器端脚本。据我所知,没有帖子链接解决方案。
You could also have a server-side script that actually sends the e-mail. There's no post link solution as far as I know.
您可能想查看 Redmine API 来更新和创建问题。
http://www.redmine.org/projects/redmine/wiki/Rest_Issues
You might want to look at the Redmine API for updating and creating issues.
http://www.redmine.org/projects/redmine/wiki/Rest_Issues
在Redmine2中有官方API。
In Redmine2 there is oficial API for it.