Add xray_jira_integration resource and Jira ticketing support on watches#392
Open
gineshkumar wants to merge 2 commits intojfrog:mainfrom
Open
Add xray_jira_integration resource and Jira ticketing support on watches#392gineshkumar wants to merge 2 commits intojfrog:mainfrom
gineshkumar wants to merge 2 commits intojfrog:mainfrom
Conversation
Introduces a new `xray_jira_integration` resource for managing Xray Jira integration configurations (CRUD via `ticketing/jira-integrations` API). Also adds Jira ticketing fields to the `xray_watch` resource: - `create_ticket_enabled` (bool) - `ticket_profile` (string) - `ticket_generation` block with `create_duplicate_tickets`, `impact_path_profiles_mapping`, and `create_tickets_for_ignored_violation` Made-with: Cursor
- GET uses same path as PUT/DELETE (no /details suffix) - PUT uses collection endpoint (connection_name in body, not path) - Response field is connection_name, not integrationName Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xray_jira_integrationresource for managing Xray Jira integration configurations (CRUD viaxray/api/v1/ticketing/jira-integrationsendpoints)xray_watchresource:create_ticket_enabled,ticket_profile, and aticket_generationblock (withcreate_duplicate_tickets,impact_path_profiles_mapping, andcreate_tickets_for_ignored_violation)ticket_generationresponse is correctly suppressed to avoid state driftNew Resource:
xray_jira_integrationconnection_namejira_server_urlinstallation_typecloudorserverauth_typebasic)usernamepasswordskip_proxyfalse)Watch Resource: New Jira Fields
create_ticket_enabledticket_profileticket_generationticket_generation.create_tickets_for_ignored_violationticket_generation.create_duplicate_tickets.by_versionticket_generation.impact_path_profiles_mapping.includeFiles Changed
pkg/xray/resource/resource_xray_jira_integration.gopkg/xray/resource/resource_xray_jira_integration_test.gopkg/xray/resource/resource_xray_watch.gopkg/xray/provider.godocs/resources/jira_integration.mdexamples/resources/xray_jira_integration/templates/resources/jira_integration.md.tmplTest Plan
xray_jira_integration: CREATE withskip_proxy=false, verified via curl GETxray_jira_integration: UPDATEskip_proxytotrue, verified via curl GETxray_jira_integration: READ (cleanterraform planafter create and update)xray_jira_integration: LIST all integrations via curl GET collectionxray_jira_integration: DELETE viaterraform destroy, verified via curl GET (404)xray_watch: CREATE watch without Jira fields, verified clean plan (no drift from API defaults)xray_watch: UPDATE watch to add Jira ticketing (create_ticket_enabled,ticket_profile,ticket_generation), verified via curl GETxray_watch: READ back matches (clean plan after update)xray_watch: UPDATE watch to remove Jira ticketing, verified clean planz0gkterra1.jfrogdev.org)Made with Cursor