Skip to content

Add gitlab username and name to the mutation response

Jarka Košanová requested to merge 225212-add-fields-to-jira-mutation into master

What does this MR do?

It adds gitlab_username and gitlab_name fields to the import users from Jira graphql mutation

Example request

mutation {
  jiraImportUsers(input: {startAt: 1, projectPath: "flightjs/flight"}) {
    errors
    jiraUsers {
      jiraAccountId
      jiraDisplayName
      jiraEmail
      gitlabId
      gitlabName
      gitlabUsername
    }
  }
}

Example response

{
  "data": {
    "jiraImportUsers": {
      "errors": [],
      "jiraUsers": [
        {
          "jiraAccountId": "557058:0867a421-a9ee-4659-801a-bc0ee4a4487e",
          "jiraDisplayName": "Slack",
          "jiraEmail": null,
          "gitlabId": null,
          "gitlabName": null,
          "gitlabUsername": null
        }
      ]
    }
  }
}

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related issue: #225212 (closed)

Merge request reports