Jira server gitab enterprise integration

I have gitlab v12.10.1-ee and jira sowtware 8.5.3 server
I can’t post comments in jira using “task-key”(like TEST-12) in commet for my commit.
I write right jira address and i can go to jira task link in my commits.
I use user who can write commits at this project.
In gitlab logs I have

   "correlation_id" : "91d3c781-c0db-4912-a718-2f3a8b33240f",
   "exception.class" : "JIRA::HTTPError",
   "exception.message" : "",
   "extra.response" : "{\"errorMessages\":[\"You do not have the permission to see the specified issue.\",\"Login Required\"],\"errors\":{}}",
   "extra.server" : {
      "os" : {
         "build" : "4.15.0-96-generic",
         "kernel_version" : "Linux gitlab 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux",
         "name" : "Linux",
         "version" : "#97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020"
      "runtime" : {
         "name" : "ruby",
         "version" : "ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]"
   "extra.sidekiq" : {
      "args" : [
            "author_email" : "test@xxx.ua",
            "author_name" : "TEST",
            "authored_date" : "2020-08-18 15:01:51 +0300",
            "committed_date" : "2020-08-18 15:01:51 +0300",
            "committer_email" : "test@xxx.ua",
            "committer_name" : "TEST",
            "id" : "6e20ad9de894daadc91e546d0d2626295461f6ac",
            "message" : "TEST-12 Jira fix",
            "parent_ids" : [
      "class" : "ProcessCommitWorker",
      "correlation_id" : "91d3c781-c0db-4912-a718-2f3a8b33240f",
      "created_at" : 1597752111.4049,
      "enqueued_at" : 1597752111.40595,
      "jid" : "004ff9a1d0e2fd9ab54ddd5f",
      "meta.caller_id" : "PostReceive",
      "meta.project" : "devops/bots",
      "meta.root_namespace" : "devops",
      "meta.subscription_plan" : "default",
      "meta.user" : "test",
      "queue" : "process_commit",
      "retry" : 3
   "severity" : "ERROR",
   "time" : "2020-08-18T12:01:51.460Z"

Jira integration in project have green color
in integration logs

    "client_url" : "http://jira.xxx.ua",
    "correlation_id" : "91d3c781-c0db-4912-a718-2f3a8b33240f",
    "error" : {
       "exception_backtrace" : [
          "lib/gitlab/error_tracking.rb:63:in `track_and_raise_exception'",
          "lib/gitlab/jira/http_client.rb:16:in `request'",
          "app/models/project_services/jira_service.rb:168:in `block in create_cross_reference_note'",
          "app/models/project_services/jira_service.rb:361:in `jira_request'",
          "app/models/project_services/jira_service.rb:168:in `create_cross_reference_note'",
          "app/services/system_notes/issuables_service.rb:131:in `cross_reference'",
          "app/services/system_note_service.rb:206:in `cross_reference'",
          "app/models/concerns/mentionable.rb:188:in `block in create_cross_references!'",
          "app/models/concerns/mentionable.rb:187:in `each'",
          "app/models/concerns/mentionable.rb:187:in `create_cross_references!'",
          "app/workers/process_commit_worker.rb:44:in `process_commit_message'",
          "app/workers/process_commit_worker.rb:34:in `perform'",
          "lib/gitlab/with_request_store.rb:7:in `with_request_store'",
          "lib/gitlab/sidekiq_daemon/monitor.rb:49:in `within_job'"
       "exception_class" : "JIRA::HTTPError",
       "exception_message" : ""
    "message" : "Error sending message",
    "project_id" : 91,
    "project_path" : "devops/bots",
    "service_class" : "JiraService",
    "severity" : "ERROR",
    "time" : "2020-08-18T12:01:51.462Z"

Thanks for taking the time to be thorough in your request, it really helps! :blush:

Hi @Natalya and welcome to the GitLab Community Forum! :tada:

Stripping away some of the noise to looking at the error message itself:

errorMessages:["You do not have the permission to see the specified issue.","Login Required"]

it appears the request is failing because there is a problem with credentials or permissions for the username/password you’re using.

Can you please confirm that you followed the documentation to configure Jira Server and set up a new group/account to use with the integration?


Note that “Administer Projects” permission level is required.


If we confirm that the steps to set up Jira Access have been successfully completed, I suggest double-checking the steps on Configuring GitLab Jira Integration and verifying that all of the required fields have been filled out with accurate required information for Jira Server.

Once you’ve verified that Jira Server Setup and GitLab Jira Integration Configuration are set according to the docs, please tail the logs with gitlab-ctl tail, and click the “Test settings and save changes” button.

I hope you find this helpful. Please let us know if this resolves the issue, and copy/paste any relevant error messages from your logs if the problem persists.


1 Like