项目作者: rgustavs

项目描述 :
tidy exports of jira tickets
高级语言: R
项目地址: git://github.com/rgustavs/tidyjira.git
创建时间: 2017-11-09T20:37:38Z
项目社区:https://github.com/rgustavs/tidyjira

开源协议:MIT License

下载


tidyjira

tidy formatatted exports of jira issues and issue worklog items

Prepare

  1. library(tidyverse)
  2. library(dplyr)
  3. library(readr)
  4. library(httr)
  5. library(tidyr)
  6. library(lubridate)
  7. library(tidyjson)
  8. library(tidyJira)
  9. user <- "a_name"
  10. password <- "a_password"
  11. host <- "https://a_site.atlassian.net/"
  12. project <- "APROJ"

Run

  1. con <- jira_connect(host, user, password, project)
  2. issue <- jira_issue(con)
  3. issue_worklog <- jira_issue_worklog(con, issue)

Investigate

  1. issue_worklog %>% mutate(start_mon = month(wl_started)) %>%
  2. group_by(start_mon, wl_updater_email) %>%
  3. summarize(effort_hours = round(sum(time_spent_hours)), digits = 1) %>%
  4. spread(start_mon, effort_hours, fill = "-")
  5. issue_worklog %>% mutate(start_mon = month(wl_started)) %>%
  6. group_by(wl_updater_email, project_key, start_mon) %>%
  7. summarize(effort_hours = round(sum(time_spent_hours)), digits = 1) %>%
  8. spread(start_mon, effort_hours, fill = "-") %>% as.data.frame()