Skip to content

Attempting to pre-fill labels when opening merge_request url with query parameters

Hey there !

I'm constructing some url that directly open the "create merge request view". I can give many parameters, such as the source_branch, target_branch, title, description, assignee, force_remove_source_branch... but I can't find any way to set a list of labels. I tried with comma separated values, a json... url encoded... nothing is working so far.

I was also unable to find any documentation about which parameter can be sent in those query parameters. If any of my three question could be answered, I would be so happy !

  • What's the expected parameter/format for labels when using an url for merge request creation ?
  • Is there any exhaustive documentation of those query parameters ? I was unable to find it.
  • Where is the source code where gitlab reads those parameters ? I could then check if it is possible to set the label :) Maybe this is not supported, and I'm just loosing my team trying to set them !

Thanks for reading !