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_urlis now required, and ausernamemust not be provided — the integration enforces these rules automatically and will show clear error messages if violated. - The
passwordfield now accepts an API token when using Service Account auth. - The valid values for
jira_auth_typeare now explicitly restricted to0,1, or2. - 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.