cli向jira提交任务日志
tasklog的Python项目详细描述
tasklog:一个基于终端的应用程序,用于将工作/任务日志提交给jira问题和空闲通道
与python版本兼容
- Python3.7.3+
基本设置
从pypi为所有用户安装
sudo bash make.sh --install-package-globally-from-source
tasklog -h
安装+运行应用程序(用于开发):
source make.sh --enable-development-env
bash make.sh --install-dependencies
bash make.sh --install-package-in-development-mode
bash make.sh --show-tasklog-options
从源代码处为所有用户安装
sudo bash make.sh --install-package-globally-from-source
tasklog -h
设置/运行应用程序:
bash make.sh --show-tasklog-options
OR
bash make.sh --show-tasklog-submit-worklog-cli-sample
bash make.sh --show-tasklog-submit-daily-cli-sample
运行测试套件:
需求:应用程序是为开发目的而安装的
bash make.sh --install-test-dependencies
bash make.sh --run-tests
配置文件示例:
# Slack Serverslack:# API TokenapiToken:"FOOBAR"# Channel to post to, without # prefixchannel:"daily"# JIRA Serverjira:# Server URLserverURL:"http://.example.com"# Account Usernameusername:"me"# Account Passwordpassword:"you"# HTTPS connection must be with a valid server certificate. boolean: true / falseverifyCertificate:false# JIRA Issue Preferencesissue:# Issue Creation Preferencescreation:# Prefered Issue Type when creating issues# (list of issue type name, sorted in descending order)typePreferedOrder:-Task-Improvement-Bug-New Feature-Sub-Task-Epic-Story-Technical Task-Question# New JIRA Issue prefered title as a numbered titledayX:# Starting title keywordprefixPreferedOrder:-Day-Jour# CLI Logginglogging:# Logging level. Enum: DEBUG, INFO, WARN, ERROR, CRITICALseverity:"INFO"# Log file namefile:"tasklog.cli.log"
任务日志文件示例:
MOCKTEST-1 23-05-2019 4.5h This log will be created against an existing JIRA issue named "MOCKTEST-1" WORKLOG# MOCKTEST 22-05-2019 8h This is log will be logged against a brand new JIRA issue in project with key MOCKTEST - and an extra line - and an extra line 2 -- and an extra line 3 WORKLOG# MOCKTEST 23-05-2019 4.5h This is a multiline description it is cool is not it ?