useblocks / sphinx-needs-enterprise

Sphinx-Needs Functions for enterprise users
http://useblocks.com/sphinx-needs-enterprise/
Other
5 stars 0 forks source link

JIRA Basic auth with password is deprecated #48

Open mawieland opened 2 years ago

mawieland commented 2 years ago

After installing sne and exceuting

sne import -c docs/conf.py jira_config -v 3.0.1 -r needs.json -o . -w

with a valid JIRA config the following exception is raised:

raise CommunicationException(f"Problems accessing {result.url}.\nReason: {result.text}")
sphinx_needs_enterprise.exceptions.CommunicationException: Problems accessing https://xyz.atlassian.net/rest/api/2/search?jql=project+%3D+testproject.
Reason: Basic authentication with passwords is deprecated.  For more information, see: https://developer.atlassian.com/cloud/confluence/deprecation-notice-basic-auth/

Using an API Token instead of the password should fix the issue.