smallcloudai / refact-lsp

Rust executable for Refact Agent, it lives inside your IDE and keeps AST and VecDB indexes up to date, offers agentic tools for an AI model to call. Yes, it works as a LSP server from IDE point of view.
BSD 3-Clause "New" or "Revised" License
47 stars 20 forks source link

[new feature] Jira integration #340

Open olegklimov opened 1 month ago

olegklimov commented 1 month ago

Jira is a nice bug-tracking software.

Would be great to have the same functionality as Github integration provides: creating issues, commenting, searching.

It's not clear at this point if they have a command line utility or REST API in Jira. Both can be integrated quite easily, a change to only 2 files required (1 file for the new integration, and tools_description.rs)

CONTRIBUTING

AngadManroy commented 1 month ago

Recently started using jira in my first job, could i perhaps fix the issue over a week?

olegklimov commented 1 month ago

Recently started using jira in my first job, could i perhaps fix the issue over a week?

Sure, fantastic! You can start by commenting in this thread using Github integration. Tell the model to find this issue, and then tell it to add a comment.

AngadManroy commented 1 month ago

Could you expand a bit on that?

olegklimov commented 1 month ago

This test comment is created by github integration!

olegklimov commented 1 month ago
image

@AngadManroy this is what I mean, reproduce github workflow to understand the task better.

AngadManroy commented 1 month ago

ok, will do

avie66 commented 1 month ago

ok, will do

Hi @AngadManroy Any updates here?

Commit2Cosmos commented 3 weeks ago

Hi @olegklimov. Could I please work on this issue, since I have an idea about how integrations work after implementing the gitlab one?

avie66 commented 3 weeks ago

Hi @Commit2Cosmos Yes, you can start working on this

Commit2Cosmos commented 3 weeks ago

Thanks, I'm guessing it makes sense to use jira-cli tool, and the commands that the agent should be capable of are listing, creating, editing, assigning, deleting etc. issues, correct?

olegklimov commented 3 weeks ago

Sure, of course, that's solid first version.

Commit2Cosmos commented 3 weeks ago

Hi @olegklimov, I've opened a PR (#410) with the first iteration of the integration. It's very similar to the github and gitlab one, but I also added a few detailed examples of commands to the tools_description.rs file, which seem to help the agent converge on the correct command faster. I've tested most of the commands related to issue creation, addition to sprints, comments etc on a test project. Please let me know if you'd like me to change anything