Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error after setup of API token-based authentication

Hi,

I have followed the instructions on how to setup the API token-based authentication. Updates were made in the Integration and My Settings.

However, I keep on getting the error....

Plugin "Jira_Cloud_REST" returned an error: Invalid user or password or insufficient permissions for the integration user (HTTP code 401). Please check the Jira User value in the Integration and/or User Settings has been configured correctly.

Could someone please help? All our TestRail users using the 'Push' link are completely annoyed as the integration to Jira is not working and have to create the defect manually.

I need a solution urgently for this newly introduced authentication that does not work on us at the moment.

3 answers

1 accepted

0 votes
Answer accepted

I was able to fix this by....

1. check if the user have another account.

2. delete the extra account

3. ask the user to logout

4. revoke the api token

5. regenerate the token

6. ask the user to re-login and check the integration between TestRail and Jira

 

Hope this help others.

How do I check if I have another account created

See if the user registered on a different name. It could be a user registered with his/her second or middle name. Or it could be the user used his/her initials when he registered.

Like AK likes this

 

you need to do one last thing to make it work. If you have multiple teammates working on Testrail, you should have each of them configure their own credentials by going to their user's settings under your name in the top right corner of my settings, in the settings tab. If you do not enter their own authentication credentials the integration will still work for them but the issue is if they push from Testaril to Jira this will be attributed to the user account associated with the fallback credentials. Once it's done the configuration is complete and you can start to use it without any issues.

Thanks 

Testrail.png

Hi AK,

In our case it is the account in TestRail. We use the TestRail to manage our test execution. In TestRail admin page, go to Users & Roles. Then search for that user who's having API issue. What I did was to delete the other user account -- e.g., couple of our users registered with 2 account.

After that, I asked them to revoke the previously setup API token in Jira. And then generate a new token to be copied in TestRail.

 

Hope this helps. 

Like AK likes this

From JIRA > Account Settings > API Tokens:  Screenshot of it being accessed:

 

Capture.PNG

you need to do one last thing to make it work. If you have multiple teammates working on Testrail, you should have each of them configure their own credentials by going to their user's settings under your name in the top right corner of my settings, in the settings tab. If you do not enter their own authentication credentials the integration will still work for them but the issue is if they push from Testaril to Jira this will be attributed to the user account associated with the fallback credentials. Once it's done the configuration is complete and you can start to use it without any issues.

Thanks Testrail.png

This solution works. Thank you! 

To generate the API token, follow the steps mentioned here https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/

I've attempted both of the steps above, the API is showing as being accessed within JIRA but I get either a 403 error or 404 from Test Rail depending on the project. I have full permissions on the projects, however I am using JIRA Service Management. I setup a trial version on JIRA and Testrail to follow from the beginning and having the same issue. 

 

Is Test Rail integration not compatible with JIRA Service Management:

 

Testrail Version - 7.2.5.1000

Would appreciate some guidance into the above, it's frustrating to not be able to connect these two.

Like Pradeep Srinivasan likes this

Hi Katy Wynne

How you create the token? 

Like # people like this

From JIRA > Account Settings > API Tokens:  Screenshot of it being accessed:

 

Capture.PNG

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you