Skip to content

Conversation

@truh
Copy link
Member

@truh truh commented Sep 4, 2025

JIRA removed the endpoint we used for searching for issues. The gouqi library thankfully already provides bindings to the new API under the same interface.

I switched to the new async interface of gouqi because I ran into some runtime errors when trying to use the newer version of the sync interface. I suspect those errors where caused by using the sync interface in an async context.

I switched to the new streaming interface of gouqi, which should deal with pagination in API results behind the scenes.

How to test

Set the environment variables

  • JIRA_HOST
  • JIRA_USERNAME
  • JIRA_PASSWORD

Or create the config file as explained here https://github.com/MoonVision/jira-tools?tab=readme-ov-file#config-file.

Run

cargo run -- 'sprint = "Wasat"' inside the checked out project folder or nix run 'github:MoonVision/jira-tools?ref=update-to-new-jira-api' 'sprint = "Wasat"'

Other JIRA Query Language queries should work as well if you want to count issues and story points for a different set.

truh added 6 commits September 3, 2025 11:08
... of deprecated JIRA APIs.
https://developer.atlassian.com/changelog/#CHANGE-2046

The gouqi dependency was updated to a feature branch
wunderfrucht/gouqi#110
The build_nix github action fails during the
install-nix-action step, maybe the update
will fix the build
Flake lock file updates:

• Updated input 'naersk':
    'github:nix-community/naersk/3fb418eaf352498f6b6c30592e3beb63df42ef11' (2024-07-23)
  → 'github:nix-community/naersk/0e72363d0938b0208d6c646d10649164c43f4d64' (2025-07-16)
• Added input 'naersk/fenix':
    'github:nix-community/fenix/bf0d6f70f4c9a9cf8845f992105652173f4b617f' (2025-07-14)
• Added input 'naersk/fenix/nixpkgs':
    follows 'naersk/nixpkgs'
• Added input 'naersk/fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/591e3b7624be97e4443ea7b5542c191311aa141d' (2025-07-13)
• Updated input 'naersk/nixpkgs':
    'path:/nix/store/ly4s3hw35dd1c2vsd694y2715pc1d2c1-source?lastModified=0&narHash=sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g%3D' (1970-01-01)
  → 'github:NixOS/nixpkgs/be9e214982e20b8310878ac2baa063a961c1bdf6' (2025-07-09)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5083ec887760adfe12af64830a66807423a859a7' (2024-11-18)
  → 'github:NixOS/nixpkgs/aaff8c16d7fc04991cac6245bee1baa31f72b1e1' (2025-09-02)
@truh truh self-assigned this Sep 4, 2025
Copy link

@TimurDaukaevMoonvision TimurDaukaevMoonvision left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Command worked

Comment on lines +113 to +116
// tracing_subscriber::fmt()
// .with_max_level(tracing::Level::DEBUG)
// .with_target(false)
// .init();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed anymore?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it in for future debugging needs.

@truh truh marked this pull request as ready for review September 5, 2025 07:48
@truh truh merged commit 4eff55e into main Sep 5, 2025
4 checks passed
@truh truh deleted the update-to-new-jira-api branch September 5, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants