使用 R 在 Jira/Atlassian 上访问问题

Acess Issue on Jira/Atlassian with R

我有一个 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. 我无法安装它,因为描述文件是 "malformed"。
  3. 它基于 jira 服务器 URL: "https://JIRAServer:port/rest/api/" 我有一个 xxxxx.atlassian.net URL

我也发现有curl查询:

    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。

有人有想法吗?

谢谢!

https://JIRAServer:port/rest/api/" form is the Jira REST API https://docs.atlassian.com/jira/REST/latest/

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

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

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

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

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

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

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

祝你好运:)