Problem with Jira&Gitlab integration

Kamil Borkowski December 8, 2022

Hello everyone,

I have a problem with commits in Jira Development Panel, when I click on a link, I can see GitLab branches and pull requests in issue, but if I click on commits, I can't see created commits, only information - "Unable to retrieve commit information. Jira is having difficulty contacting GitLab Self-Managed. If this condition persists, please contact your Jira administrators".

 

I edited Jira and GitLab integration in Oauth 2.0 settings, added new Client ID, Client secret from GitLab, changed callbacks. I also reconnected GitLab accounts in DVCS connector, synchronized repositories again, and it worked, right after reconfiguration - but only for 1-2 hours. After that time, problem with commits in issues came back again. 

 

I checked Jira logs, and it keeps repeating one error: "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client".

I was looking for a solution on the internet and I found two articles about this error: 

[JSWSERVER-21417] Jira access token getting expired after 2 hours while connecting to Gitlab - Create and track feature requests for Atlassian products.

[JSWSERVER-21243] DVCS syncing GitLab Pull Requests is not updating - Create and track feature requests for Atlassian products.

 

It seems that JIRA tries to refresh the same token, or GitLab creates new tokens automatically and probably this may cause a problem, but that's just my guess. 

Is it possible to fix this error? Is there any solution to not updating Jira and GitLab integration manually every time to see commits in Jira Development Panel? 

 

Jira version: 8.15.0 (Server)

GitLab version: 15.5.4 (Community Edition)

 

Screenshots:

ss_tokenserviceexception.jpgss_unable_to_retrieve_commit_information.jpg

 

Thank you for any support.

0 answers

Suggest an answer

Log in or Sign up to answer