Implement gitlab_project_issue_link resource
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Feature Description
I have been trying without success to pass other issues as a reference to a project issue. Folloing the documentation that states the following:
[references](https://registry.terraform.io/providers/gitlabhq/gitlab/latest/docs/resources/project_issue#references) (Map of String) The references of the issue.
I managed to get one reference set using terraform function to map like below:
references = tomap({
"full" = "professional-services-delivery/partner_c/customer_f/PSE-00150#2",
"relative" = "#2",
"short" = "#2"
})
However, no to sure how syntax I should use to pass more than one issue. We could improve the docs to facilitate more advanced use cases.
This is what I tried with no success.
references = [{
"full" = professional-services-delivery/partner_c/customer_f/PSE-00150#2",
"relative" = "#2",
"short" = "#2"
},
{
"full" = "professional-services-delivery/partner_c/customer_f/PSE-00150#4",
"relative" = "#4",
"short" = "#4"
}
]
Any help is more than welcome. With the proper guidance, I could submit this PR.
Implementation Guide
- Create new resource in
internal/provider/resource_gitlab_project_issue_link.gofollowing thedocs/development/CreatingANewResource.mdguide. - Create a new resource test in
internal/provider/resource_gitlab_project_issue_link_test.go.
Edited by 🤖 GitLab Bot 🤖