8 releases (4 breaking)

0.7.1 Jul 23, 2023
0.7.0 Jul 20, 2023
0.6.1 Jun 24, 2023
0.6.0 Mar 20, 2023
0.3.0 Jun 30, 2022

#134 in Authentication

Download history 26/week @ 2023-12-14 4/week @ 2023-12-21 22/week @ 2023-12-28 38/week @ 2024-01-04 237/week @ 2024-01-11 76/week @ 2024-01-18 143/week @ 2024-01-25 97/week @ 2024-02-01 29/week @ 2024-02-08 108/week @ 2024-02-15 81/week @ 2024-02-22 62/week @ 2024-02-29 78/week @ 2024-03-07 265/week @ 2024-03-14 156/week @ 2024-03-21 64/week @ 2024-03-28

574 downloads per month
Used in dgira

MIT license

62KB
1.5K SLoC

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

[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!");
    }
}

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–19MB
~286K SLoC