Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Just started to get an Auth error with TestRail CLI integration

Paul Dunstan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 2026

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

1 answer

0 votes
Matteo Vecchiato
Community Champion
February 7, 2026

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:

  • User status and if has product assigned
  • Jira project permission

Hope it helps

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events