关于Jira / Atlassian的R问题

时间:2016-06-14 11:20:59

标签: r jira

我有一个Atlassian / Jira帐户,其中列出了项目。我想导入各种问题,以便进行一些额外的分析。我找到了一种连接Atlassian / Jira并在Python上导入我想要的东西的方法:

    from jira import JIRA
    import os
    impot sys
    options = {'server': 'https://xxxxxxxx.atlassian.net'}
    jira = JIRA(options, basic_auth=('admin_email', 'admin_password'))
    issues_in_proj = jira.search_issues('project=project_ID')

效果很好,但我想在R中做同样的事情。有可能吗?我找到了RJIRA包,但对我来说有三个问题:

  1. 它仍然是开发版
  2. 我无法安装它,因为描述文件是"格式错误"。
  3. 它基于jira服务器网址:" https://JIRAServer:port/rest/api/"我有一个xxxxx.atlassian.net网址
  4. 我还发现有卷曲查询:

        curl -u username:password -X GET -H 'Content-Type: application/json'
        "http://jiraServer/rest/api/2/search?jql=created%20>%3D%202015-11-18"
    

    但它又基于" https://JIRAServer:port/rest/api/"形式,此外我正在使用Windows。

    有人有想法吗?

    谢谢!

1 个答案:

答案 0 :(得分:1)

https://JIRAServer:port/rest/api/”表单是Jira REST API https://docs.atlassian.com/jira/REST/latest/

作为rest api,它只是进行http方法调用并为您提供数据。

所有jira实例都应公开其余的api,只需将浏览器指向您的jira域,如下所示:

https://xxxxx.atlassian.net/rest/api/2/field

您将看到您有权访问的所有字段,例如

这意味着您可以使用php,java或来自linux的简单curl调用来获取您的jira数据。我没有使用过RJIRA,但如果你不想使用它,你仍然可以使用R(我没有使用过)并对其余的api进行HTTP调用。

我博客上的这两个链接可能会为您提供更多见解:

http://javamemento.blogspot.no/2016/06/rest-api-calls-with-resttemplate.html http://javamemento.blogspot.no/2016/05/jira-confluence-3.html

祝你好运:)