marc0l92 / joplin-plugin-jira-issue

Retrieve Atlassian Jira issues information using their api in order to track the status of them from your Joplin notes.
MIT License
27 stars 9 forks source link

Jira Cloud: Error : TypeError: Cannot read properties of undefined (reading 'join') #23

Closed AymDev closed 1 year ago

AymDev commented 1 year ago

Hi, The company I work with recently switched to Jira Cloud. I changed my authentication method to API token but I now get the following error:

Error : TypeError: Cannot read properties of undefined (reading 'join')

Do you have any idea about what is going wrong ? Maybe I can share anonymized REST API response if you need to see the JSON structure.

Thank you for this great plugin.

marc0l92 commented 1 year ago

Please open the console with Ctrl+Shift+i and send me a screenshot o the full error stack. You should be able to see something like this:

image

AymDev commented 1 year ago

There is no error in the console, I only get this message logged when I open a note or change the issue key: image

jtyszkiew commented 1 year ago

+1, any update on this one? :) It's cool plugin, would love to use it with jira cloud.

Edit: After investigation here: https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/#simple-example it seems that jira accepts username:api_key as basic auth credentials, and after test it works fine - maybe this will help someone :)

AymDev commented 1 year ago

I finally made it work, just by using the email address as the username and the API token as the password. I'm surprised I didn't try it earlier... Thanks !