The error message:
Plugin “Jira_REST” returned an error: Invalid user or password or insufficient permissions for the integration user (HTTP code 401). Please make sure to use your actual JIRA username for the integration (not your email address, for example).
Testrail version 18.104.22.16872
Locally hosted testrail, jira is running in another organisation.
Logging in to jira using the same user in a browser works as expected - both viewing issues and creating new ones.
Error message appears when selecting the project available in the “push defect” window. The project name is correct from jira.
Both defects and references has been set up, and references work fine from within testrail - mousing over a reference shows correct content from Jira.
Integration is set up for a single project, not entire testrail installation, trying both user variables and user/pass directly in integration configuration.
I verified that user and pass is actually read correctly from user settings by changing to nonsense and getting an error when looking up a reference.
Unknown to me: Wether or not jira offers separate settings for users for API access. I have very limited access to the Jira installation as it belongs to another company.
Possibly related: background task may not be running. Appearantly there has been some changes to the server, but it is being looked into.