issues with jira context provider and incomplete documentation
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
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
'''
So, the chat cannot get the content of the jira issue.
To reproduce
- ensure to have a jira cloud account, then create an API token in https://id.atlassian.com/manage-profile/security/api-tokens
- configure the jira context provider with parameters: domain, token, email, apiVersion
- 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
- ask a question like "what's the outcome for this ticket?"
- you should see the error tooltip appear
Log output
there's nothing written in core.log or prompt.log when using this context provider.
I found that there exists some npm modules provided by Atlassian dubbed as: @atlaskit/adf-utils . I feel like the issue is related to this module (or the absence of this module). I'm not familiar with how to deal with npm modules and continue however. I tried to execute "npm install @atlaskit/adf-utils" from ~/continue folder, and reload vscode, but it doesn't change it. Maybe I'm dealing with the wrong dependency, but the doc is not mentioning which dependency to deploy as well.
In https://github.com/continuedev/continue/blob/main/core/context/providers/JiraIssuesContextProvider/JiraClient.ts, I see it imports a module "adf-to-md", maybe not the atlaskit so. But I still get this error after "npm install adf-to-md" in ~/continue. I found that adf-to-md was in package.json here (https://github.com/continuedev/continue/blob/main/core/package.json), so it's not missing actually. But package.json in ~/continue is almost empty:
{"name":"continue-config","version":"1.0.0","description":"My Continue Configuration","main":"config.js","dependencies":{"continue-config":"file:"}}
I tried to delete entirely ~/continue and reinstalled continue vscode extension. But the error remains.
Hi @bodzebod , thanks for flagging this. The issue is likely related to some TypeScript config updates we made last month.
Should be fixed with this: https://github.com/continuedev/continue/pull/2247
Please circle back if you're still having issues after the next pre-release!
it works like a charm, thank you!