Add support for Jira Service Accounts in project integration

Summary

This update adds support for a new Jira Cloud Service Account authentication method (type 2) when integrating GitLab projects with Jira, alongside the existing Basic Authentication (type 0) and Personal Access Token (type 1) options.

Service account support added in gitlab!224187 (merged), API docs being updated in gitlab!240729 (merged).

Key changes:

  • When using Service Account auth, an api_url is now required, and a username must not be provided — the integration enforces these rules automatically and will show clear error messages if violated.
  • The password field now accepts an API token when using Service Account auth.
  • The valid values for jira_auth_type are now explicitly restricted to 0, 1, or 2.
  • New tests were added to verify that the validation rules are enforced correctly and that the Service Account auth flow works end-to-end.
  • Some internal code was cleaned up to use Go's built-in new() instead of a helper function for creating pointers.

Merge request reports

Loading