Variables in Service Settings/Templates

Provide additional variables within the Service Settings/Templates context. At the moment, the only variable I can find documented is the :id variable, if variables including :project_name, :project_slug, etc. were added then people could create almost automated integration between services by correctly naming their projects.

Here are a list of variables I would make accessible (feel free to change the reference name):

  • project_name
  • project_slug
  • group_name
  • group_slug

Personally I would also change the format of these variables as :string will be ambiguous as to where the variable name ends. Even just adding an end : delimiter would help.

Using the variables I have described, I would be able to integrate with JIRA by building a JQL query of the form project=:group_slug AND component=:project_slug and by creating the groups and projects to match the structure in JIRA, everything will be linked automatically.

In conjunction with gitlab-ce#7080 this would make linking projects with services so much easier and almost autonomous.

As an extension to this in the future, the ability to set project properties which could also be references allowing arbitrary strings to be set on a per project level and substituted into the shared Service Template.

Edited Aug 20, 2020 by Jackie Porter
Assignee Loading
Time tracking Loading