Skip to content

Add gitlab username to start jira import

Jarka Košanová requested to merge graphql-username into master

What does this MR do?

It adds gitlab_username as alternartive to gitlab_id to usersMapping argument to jiraImportStart mutation.

We have decided that in the first iteration users importing data from Jira will have to input a gitlab username to a simple text field. The reason for that is that creating autocomplete component on the form is too complex.

We don't dismiss the idea of autocomplete, it will be in the next iteration. Therefore gitlab_id option is kept in the mutation & service.

Example

mutation {
  jiraImportStart(input: {jiraProjectKey: "TEST", projectPath: "flightjs/flight", 
    usersMapping: [
      {jiraAccountId: "aaaa", gitlabId: 5}, 
      {jiraAccountId: "bbb", gitlabId: 7},
      {jiraAccountId: "ccc", gitlabId: null},
      {jiraAccountId: "eee", gitlabUsername: "jarka"},
      {jiraAccountId: "ddd"}
    ]}) {
    errors
    jiraImport {
      jiraProjectKey
    }
  }
}

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to !33320 (merged)

Edited by Jarka Košanová

Merge request reports

Loading