jfrog / terraform-provider-xray

Terraform provider to manage JFrog Xray
https://jfrog.com/xray/
Apache License 2.0
146 stars 12 forks source link

Ability to specify Jira integration #23

Open codebop opened 2 years ago

codebop commented 2 years ago

Currently both the xray_license_policy and xray_security_policy resources have the create_ticket_enabled parameter for the rule.actions object, but there is not a parameter to specify which Jira integration should be used.

Requested solution: Implement a jira_integration_name parameter (or some other name) for the xray_license_policy.rule.actions and xray_security_policy.rule.actions objects.

Additional Context: I want to be able to send different policy findings to different teams Jira projects at my company.

Cheers

danielmkn commented 2 years ago

@codebop, we're going to implement this. To make it work we will add a couple of new fields in the Watch schema. When the user creates a policy, it's impossible to make it to create a ticket in a specific Jira profile. The Jira profile should be set in the Watch, then all the policies, assigned to it (with enabled ticket creation function) will create tickets in that particular Jira project. See the official documentation.

danielmkn commented 2 years ago

Unfortunately, the public API to get watch doesn't return the information about assigned Jira profiles. Which makes this field unverifiable. We've submitted an internal ticket with Xray team and hope it will be resolved soon.

midi89 commented 2 weeks ago

Unfortunately I have the same problem. Is there any news after almost 3 years? :)

alexhung commented 2 weeks ago

@midi89 Unfortunately we are still awaiting implementation of APIs to manage JIRA integration from the Xray team.