Abdallah Alsamman
Abdallah Alsamman

Reputation: 1672

how to set Gitlab project default issues template using the API

Background

I am enforcing an issue template so I can extract the business requirement(one-liner describing the issue for non-technical people) from an issue description

Default Issue Description

Problem: Gitlab API doesn't have the description field

enter image description here According to Gitlab API documentation, there is nothing about the description field in the projects namespace parameters https://docs.gitlab.com/ce/api/projects.html#edit-project

Question: How can I set a default issue template using the API?

Upvotes: 0

Views: 2729

Answers (1)

Jawad
Jawad

Reputation: 4665

Short answer: the API doesn't provide this right now.

From what I understand after reading the doc, issue templates exist as files committed to your git repository (inside the .gitlab/issue_templates/ folder). Therefore, if an API endpoint to do what you want existed, it would have to create a file in the repository with your template in it, then create a new commit on a given branch and push to the repo.

Upvotes: 3

Related Questions