continue icon indicating copy to clipboard operation
continue copied to clipboard

issues with jira context provider and incomplete documentation

Open bodzebod opened this issue 1 year ago • 1 comments

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue: 0.9.197
- IDE: vscode 1.93.0
- Model: not relevant
- config.json:
  
{
      "name": "jira",
      "params": {
        "domain": "xxx.atlassian.net",
        "token": "xxxxx",
        "email": "[email protected]",
        "apiVersion": 3
      }
    },

Description

In the documentation for jira context provider, it is mentioned to fill only "domain" and "token" in config.json. However, I've not been able to make it work on our jira cloud. I was getting an error 403 (forbidden) systematically, until I filled the properties "email" and "apiVersion", which allowed to get a list of jira issues. On this, the documentation looks incomplete.

But when I reference a JIRA issue in the chat, I then get another error: ''' Error getting context items from jira: TypeError: (0, import_adf_to_md.default) is not a function ''' image

So, the chat cannot get the content of the jira issue.

To reproduce

  1. ensure to have a jira cloud account, then create an API token in https://id.atlassian.com/manage-profile/security/api-tokens
  2. configure the jira context provider with parameters: domain, token, email, apiVersion
  3. in the chat, use the jira context provider to grab an open issue assigned to you, then click on it to reference it in the chat
  4. ask a question like "what's the outcome for this ticket?"
  5. you should see the error tooltip appear

Log output

there's nothing written in core.log or prompt.log when using this context provider.

bodzebod avatar Sep 10 '24 08:09 bodzebod