gouji

Software License Released API docs Rust codecov

a rust interface for jira

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

install

Add the following to your Cargo.toml file

toml [dependencies] gouqi = "0.4"

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.

```rust extern crate gouqi;

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

fn main() { if let Ok(host) = env::var("JIRAHOST") { let query = env::args().nth(1).unwrapor("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!");
}

} ```

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