jacob-ai-bot / jacob

Just Another Coding Bot
https://jacb.ai
Apache License 2.0
123 stars 19 forks source link

Integrate Jira to Automatically Create To-Dos in Jacob #131

Open kleneway opened 3 days ago

kleneway commented 3 days ago

Description

Implement a feature in Jacob that integrates with Jira by setting up a webhook to listen for new Jira issues. When a new Jira issue is created, Jacob will automatically generate a corresponding to-do, mirroring the existing functionality for GitHub issues. This integration aims to streamline task management and ensure consistency across both platforms.

Features

Implementation Details

  1. Webhook Setup

    • Configure Jira to send webhook events for new issue creations to Jacob.
    • Ensure the webhook utilizes the JIRA_API_KEY securely stored in process.env.
  2. Update Settings Page (settings.tsx)

    • Introduce a "Log in with Jira" option in the settings section.
    • Implement OAuth or token-based authentication to connect Jira accounts.
    • Store the retrieved Jira token securely in the user table.
  3. Database Schema Modification

    • Add a new field to the user table to store the Jira token.
    • Ensure that the token is encrypted and handled securely to protect user data.
  4. To-Do Workflow Integration

    • Develop the logic to process incoming Jira webhook events.
    • Automatically generate a to-do in Jacob upon receiving a new Jira issue notification.
    • Incorporate necessary steps such as research and planning, consistent with the GitHub issue workflow.

Expected Behavior

Benefits

Environment and Configuration

Additional Notes

Be sure to research the jira-client package here: https://github.com/jira-node/node-jira-client but ideally use an oauth token instead of username/password. Use this URL to install your 3LO app: https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id=z9MOoQe9g8QmMCGACf8fMOKnIQAMdoGb&scope=read%3Ame&redirect_uri=https%3A%2F%2Fapp.jacb.ai%2Fapi%2Fjira%2Fcallback&state=${YOUR_USER_BOUND_VALUE}&response_type=code&prompt=consent and the callback url should be https://app.jacb.ai/api/jira/callback @jacob-ai-bot --skip-build

jacob-ai-bot[bot] commented 3 days ago

JACoB here...

You mentioned me on this issue and I am busy taking a look at it.

I'll continue to comment on this issue with status as I make progress.

jacob-ai-bot[bot] commented 3 days ago

Unfortunately, I ran into trouble working on this.

Here is some error information:

400 openai error: Invalid prompt: your prompt was flagged as potentially violating our usage policy. Please try again with a different prompt: https://platform.openai.com/docs/guides/reasoning/advice-on-prompting
jacob-ai-bot[bot] commented 3 days ago

JACoB here...

You mentioned me on this issue and I am busy taking a look at it.

I'll continue to comment on this issue with status as I make progress.

jacob-ai-bot[bot] commented 3 days ago

Unfortunately, I ran into trouble working on this.

Here is some error information:

400 openai error: Invalid prompt: your prompt was flagged as potentially violating our usage policy. Please try again with a different prompt: https://platform.openai.com/docs/guides/reasoning/advice-on-prompting
jacob-ai-bot[bot] commented 3 days ago

JACoB here...

You mentioned me on this issue and I am busy taking a look at it.

I'll continue to comment on this issue with status as I make progress.

jacob-ai-bot[bot] commented 3 days ago

Update

I've completed my work on this issue and have created a pull request: JACoB PR for Issue Integrate Jira to Automatically Create To-Dos in Jacob.

Please review my changes there.

jacob-ai-bot[bot] commented 3 days ago

JACoB here...

You mentioned me on this issue and I am busy taking a look at it.

I'll continue to comment on this issue with status as I make progress.

jacob-ai-bot[bot] commented 3 days ago

Update

I've completed my work on this issue and have created a pull request: JACoB PR for Issue Integrate Jira to Automatically Create To-Dos in Jacob.

Please review my changes there.