Skip to content

Project use rcarz/jira-client library. Project written in scala

License

Notifications You must be signed in to change notification settings

mariopce/jira-bash-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jira bash client

Status

Build Status

Introduction

I do a lot of things from console. I'm using git flow feature start to start a new task/branch. I'm using git flow feature to finish task, and I'm using git to commit my code nipped. I would like to connect:

  • git flow
  • git comments
  • jira To start finish and comment what happen with task.

Someone can say - but "smart commit" are avaliable on jira - but my company can not enable this feature. Someone can say that jire CLI is avaliable - but this is not enable in my company too from security reason.

Library https://github.com/rcarz/jira-client emulate browser and you are able to run this library on jira, even CLI is disabled.

Usage

Autentication

There is two ways of auth. You can pass username, password and url by options like bellow:

jira.sh command -u mario -p password -url tomtom.com ...

or

jira.sh command --username --password password --url https://jira.tomtom.com

or by config file. ( by default conf.prop)

jira.sh  -c conf.prop

Example of conf.prop

username=mariopce@gmail.com
password=mario18
url=https://testmario.atlassian.net
project=LNS

When you don't pass any arguments for authentication then auth data are taken from conf.prop. In this way console commands are even shorter (TODO)

Update task

Add comment

jira.sh update --task LNS-11 --addcomment "Bla bla bla"

Change status

jira.sh update --task LNS-11 --status "In Progress"

Change status and add comment. Using different project configuration jira.sh -c conf2.prop update --task LNS-11 --status "In Progress" --addcomment "Bla \n bla bla"

Create subtask

Summary is a title description is a description assignee - user which should be assign

./jira.sh update --task LNS-2258 --addsubtask "summary=[ISSUE] title with spaces,description=desc with a spaces,assignee=saramakm"

Checking task user state

jira.sh getinfo --user saramakm --filter "status==inprogress" -u mario -p password -url tomtom.com
jira.sh getinfo --user saramakm --filter "status==done"

Create new task (TODO)

jira.sh createTask -t "Title Of task" -d "Description of task" -p "LNS-122"

add subtask

jira.sh  update --task LNS-24 --addsubtask summary=subtask1,description="fdsfs  \\n fdsfds \\n\\r vfsdsd \\fsfs In Progress"

Get information about tasks

Information about task: summary, description, comments

jira.sh getinfo --task LNS-123

Get all comments from task

jira.sh getinfo --task LNS-123 --filter "comments"

Get information reports

jira.sh getinfo --report useranomaly

Filter task and display info jira.sh getinfo --user admin --filter " AND status="In Progress""

About

Project use rcarz/jira-client library. Project written in scala

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published