Jira Integration - getting to the configuration info via the API

Jira Integration - getting to the configuration info via the API

  • I’m attempting to get the Jira integration info via the gitlab API.

I can get to some of the info via GET /projects/:id/integrations/jira
Which returns something like this:

   'id' => 19072,                                                                                                                                                       
      'commit_events' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),                                                                                                
      'updated_at' => '2022-09-06T22:42:48.105Z',                                                                                                                       
      'active' => $VAR1->{'commit_events'},                                                                                                                             
      'slug' => 'jira',                                                                                                                                                 
      'wiki_page_events' => $VAR1->{'commit_events'},                                                                                                                   
      'merge_requests_events' => $VAR1->{'commit_events'},                                                                                                              
      'push_events' => $VAR1->{'commit_events'},                                                                                                                        
      'properties' => {                                                                                                                                                 
                        'api_url' => '',                                                                                                                                
                        'username' => 'sysadmin@MYCOMPANY.com.au',                                                                                                      
                        'jira_issue_transition_id' => '',                                                                                                               
                        'url' => 'https://MYCOMPANY.atlassian.net/browse/DO'                                                                                            
                      },                                                                                                                                                
      'confidential_issues_events' => $VAR1->{'commit_events'},                                                                                                         
      'title' => 'Jira',                                                                                                                                                
      'issues_events' => $VAR1->{'commit_events'},                                                                                                                      
      'note_events' => $VAR1->{'commit_events'},                                                                                                                        
      'confidential_note_events' => $VAR1->{'commit_events'},                                                                                                           
      'job_events' => $VAR1->{'commit_events'},                                                                                                                         
      'created_at' => '2022-09-01T00:17:04.900Z',                                                                                                                       
      'tag_push_events' => $VAR1->{'commit_events'},                                                                                                                    
      'comment_on_event_enabled' => $VAR1->{'commit_events'},                                                                                                           
      'pipeline_events' => $VAR1->{'commit_events'}                                                                                                                     
    };                                                                                                                                                                  

  • What are you seeing, and how does that differ from what you expect to see?

I’d expect to see the complete info including “Issues Jira Project Key” under “Enable Jira Issues”

  • Consider including screenshots, error messages, and/or other helpful visuals

  • What version are you on? Are you using self-managed or GitLab.com?

    • GitLab (Hint: /help):
    • Runner (Hint: /admin/runners):
  • Add the CI configuration from .gitlab-ci.yml and other configuration if relevant (e.g. docker-compose.yml)

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

I’ve tested a lot but I believe the API endpoint doesn’t exist for this data.

Here’s a screenshot of the info on the web interface (it’s under jira integrations) I’ve set the “Jira Project Key” to “DO” - but no mention of it in the integrations or the issues API’s.