When trying to add a Jira reference to uploaded test cases through the TestRail CLI i get the follow error and the data is deleted from TestRail, this was previously working and adding a reference manually through the same user in TestRail works as it locates the Jira issue.
2026-02-06T14:34:06.4114068Z Adding test cases: 0/12{"timestamp": "2026-02-06T14:34:06.410418+00:00", "level": "INFO", "logger": "trcli.parse_junit", "message": "\nError during add_case. Trying to cancel scheduled tasks."}
2026-02-06T14:34:06.4116728Z {"timestamp": "2026-02-06T14:34:06.410482+00:00", "level": "INFO", "logger": "trcli.parse_junit", "message": "\nAborting: add_case. Trying to cancel scheduled tasks."}
2026-02-06T14:34:06.4118463Z
2026-02-06T14:34:06.4119150Z Error during add_case. Trying to cancel scheduled tasks.
2026-02-06T14:34:06.4119612Z
2026-02-06T14:34:06.4120220Z Aborting: add_case. Trying to cancel scheduled tasks.
2026-02-06T14:34:07.8255691Z
2026-02-06T14:34:07.8256876Z Adding test cases: 0/12
2026-02-06T14:34:07.8260374Z Invalid jira configuration or insufficient permissionsfor the integration user (HTTP code 401). Please check the jira configured properly Instance and/or project and/or User Settings has been configured correctly.
2026-02-06T14:34:07.8264951Z {"timestamp": "2026-02-06T14:34:07.825639+00:00", "level": "ERROR", "logger": "trcli.error", "message": "Invalid jira configuration or insufficient permissionsfor the integration user (HTTP code 401). Please check the jira configured properly Instance and/or project and/or User Settings has been configured correctly."}
2026-02-06T14:34:08.9045694Z Deleted created test cases
2026-02-06T14:34:08.9047854Z Deleted created section
2026-02-06T14:34:08.9050731Z Deleted created suite
Hi @Paul Dunstan ,
Welcome to Atlassian community and thank for your post.
It seems that the user used for integration hasn't required permission on Jira side.
I suggest to check on Jira side:
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.