jicli

Crates.iojicli
lib.rsjicli
version0.1.5
sourcesrc
created_at2022-01-07 22:13:45.501508
updated_at2022-01-12 17:26:42.142615
descriptionSimple JIRA client to add worklog time to an issue
homepage
repository
max_upload_size
id509964
size34,673
Sebastian Plaza (sebaplaza)

documentation

README

JICLI

Rust JIRA client

This is a simple JIRA client to helps to add worklog times into an issue.

Requirements

You must a have rust tools (rustup) installed

Install jicli via cargo

cargo install jicli

How to use it ?

Set these 3 environnements variables

export JIRA_URL=https://my-jira.com
export JIRA_USER=my_user
export JIRA_PASSWORD=my_password

Then launch the client

ex: add 1 day into issue JIRA-362

jicli --issue JIRA-362 --time 1d

To know all possible options

jicli --help

Integrations

For example, if your git brach includes the issue reference, you could write a shell function to deal with it automatically.

If your git branch looks like feat/JIRA-234-my-awesome-feature , you can write a bash function like this

Add this to your ~/.bashrc or ~/.zshrc

# jira time function
# ex: jt 1h   (to add one hour to ticket)
function jt() {
  # extract jira ticket from branch and add worklog time
  jicli --time $1 --issue $(git branch --show-current --no-color | grep  -Po '[A-Z]+-[0-9]+')
}

Then, use it like this:

# add 1 day to issue JIRA-234
jt 1d
Commit count: 0

cargo fmt