Skip to content

Add graphql api for querying jira imports and jira import status

Alexandru Croitor requested to merge jira-import-graphql-api into master

What does this MR do?

Adds graphql api endpoint for quering jira imports and laters jira import details. jira import data is stored within project_import_data as a serialized json.

This is bound to be changes when we implement a first class object for tracking jira imports in #211660 (closed)

query {
  project(fullPath: "gitlab-org/acroitor-test-group/acroitor-test-subgroup1/jira-import-test2") {
    jiraImports(last: 1) {
      nodes {
        jiraProjectKey
        scheduledAt
        scheduledBy {
          username
        }
      }
    }
  }
}
{
  "data": {
    "project": {
      "jiraImports": {
        "nodes": [
          {
            "jiraProjectKey": "IG",
            "scheduledAt": "2020-03-19T23:39:52+00:00",
            "scheduledBy": {
              "username": "root"
            }
          }
        ]
      }
    }
  }
}

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Alexandru Croitor

Merge request reports