10 releases (6 breaking)

0.9.0 Oct 3, 2024
0.8.0 Jul 3, 2024
0.7.1 Jul 23, 2023
0.6.0 Mar 20, 2023
0.3.1 Jul 1, 2022

#6 in #jira

Download history 117/week @ 2024-08-23 68/week @ 2024-08-30 52/week @ 2024-09-06 67/week @ 2024-09-13 230/week @ 2024-09-20 201/week @ 2024-09-27 129/week @ 2024-10-04 80/week @ 2024-10-11 151/week @ 2024-10-18 83/week @ 2024-10-25 60/week @ 2024-11-01 40/week @ 2024-11-08 109/week @ 2024-11-15 51/week @ 2024-11-22 145/week @ 2024-11-29 56/week @ 2024-12-06

365 downloads per month
Used in dgira

MIT license

64KB
1.5K SLoC

gouqi

Software License Released API docs Rust codecov

a rust interface for jira

Forked from goji https://github.com/softprops/goji

install

Add the following to your Cargo.toml file

[dependencies]
gouqi = "*"

usage

Please browse the examples directory in this repo for some example applications.

Basic usage requires a jira host, and a flavor of jira::Credentials for authorization.

Current support api support is limited to search and issue transitioning.

extern crate gouqi;

use gouqi::{Credentials, Jira};
use std::env;
use tracing::error;

fn main() { 
    if let Ok(host) = env::var("JIRA_HOST") {
        let query = env::args().nth(1).unwrap_or("order by created DESC".to_owned());
        let jira = Jira::new(host, Credentials::Anonymous).expect("Error initializing Jira");

        match jira.search().iter(query, &Default::default()) {
            Ok(results) => {
                for issue in results {
                    println!("{:#?}", issue);
                }
            }
            Err(err) => panic!("{:#?}", err),
        }
    } else {
        error!("Missing environment variable JIRA_HOST!");
    }
}

Commiting a PR

Please make sure to run cargo fmt, cargo test and cargo clippy before committing. New code should contains tests. Commits to follow the Conventional Commits specification.

Changelog is generated using git cliff

cargo install git-cliff
git cliff -o --use-branch-tags

what's with the name

Jira's name is a shortened form of gojira, another name for godzilla. Goji is a play on that.

Goji (Chinese: 枸杞; pinyin: gǒuqǐ)

Doug Tangren (softprops) 2016-2018

Dependencies

~5–17MB
~224K SLoC