| Crates.io | jira-api-v2 |
| lib.rs | jira-api-v2 |
| version | 1.0.1 |
| created_at | 2025-02-20 12:55:48.901326+00 |
| updated_at | 2025-02-20 15:42:42.214839+00 |
| description | Jira Cloud platform REST API |
| homepage | |
| repository | https://github.com/VladChekunov/jira-api-v2-rs |
| max_upload_size | |
| id | 1562617 |
| size | 4,907,059 |
If you are looking for API v3, you can get it here.
Firstly you have to make Configuration object like that:
let config = Configuration {
base_path: jira_base_url.to_string(),
user_agent: Some("jira-rust/0.0.1".to_owned()),
client: client,
oauth_access_token: Some(jira_personal_access_token),
basic_auth: None,
bearer_access_token: None,
api_key: None,
};
Then you have to call any of API methods by putting config there, like this:
let search_results: SearchResults = search_for_issues_using_jql(
&config,
Some(&jql),
None,
None,
None,
None,
None,
None,
None,
)
.await?;
Finally, process your results, like this:
match search_results.issues {
Some(issue_list) => {
for issue in issue_list {
println!("{:?}", issue);
}
}
None => {
println!("No Issues found.");
}
}
You can find out more info from generated docs.