Add GraphQL field to determine if Jira issue creation is enabled

Context

It is possible to enable a setting, which allows Jira-issue creation from within the modal.

This can be done by going to the related settings page (example: http://gdk.test:3000/security/security-reports/-/settings/integrations/jira/edit) and enabling the following settings:

Screenshot_2023-04-05_at_9.14.15_pm

On the current REST (e.g: http://gdk.test:3000/api/v4/projects/20/vulnerability_findings?pipeline_id=598&scope=dismissed&t=1680722178814) endpoint we include a field (create_jira_issue_url) that contains the URL for creating the Jira issue. If that field is populated, then we render the "Create Jira issue" button, otherwise a "Create Issue button" (Gitlab issue).

Screenshot_2023-04-05_at_9.20.01_pm

Screenshot_2023-04-05_at_9.21.20_pm

We need to include that information within the GraphQL endpoint. Since the setting is project-wide, it might make sense to include it within the project field.

This should be a boolean flag. Possible solution:

query getSecurityReportFinding($projectFullPath: ID!, $pipelineIid: ID!, $findingUuid: String!) {
  project(fullPath: $projectFullPath) {
    id
    webUrl
    nameWithNamespace
    hasJiraVulnerabilityIssueCreationEnabled # <-- added field
    # ... rest of query

Implementation plan:

Edited by Subashis Chakraborty