0

In Gitlab we have a flow where our tickets go from "In Progress" to "Code Review" when an MR is created and from "Code Review" to "Ready for Testing" when a deployment to our QA environment is performed. However, the developers have to update the tickets by hand. Each of those statuses (In Progress, Code Review, Ready for Testing) are just tags on the ticket

Is there a way to automate this flow?

1 Answer 1

1
+50

Sure, utilize GitLab API within your CI/CD pipeline to update the ticket status automatically:

  1. Set up a GitLab CI/CD pipeline to run automated tests whenever a new merge request is created or updated. If the tests pass, the pipeline can automatically update the associated ticket status to "Code Review".

  2. Configure GitLab webhooks to trigger another pipeline when a deployment is made to the QA environment. This pipeline will run automated tests again, and if they pass, the associated ticket can be updated to "Ready for Testing".

Top it off with some GitLab permissions to restrict access to changing ticket status to authorised users only.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.