Creating issues as defects in JIRA Defect Tracking System

Select issues and submit them to Atlassian Pty Limited JIRA as defects for further tracking.

Before you begin

  1. This task uses a REST API call (GET /issues/details_v2) to build the content of the attachment.
  2. Make sure that JIRA is set up to accept attachments.
    1. In JIRA, go to the Settings > System page.
      Note: You must have administrator privileges to complete this step.
    2. From the menu, select Advanced > Attachments.
    3. Edit the settings so that Allow Attachments setting is "ON".
  3. JIRA integration is not supported in Microsoft™ Internet Explorer v8/9. Consider upgrading your browser version or use Firefox instead.
  4. An External ID is created when you submit defects to JIRA. The External ID column indicates the project areas where issues were already submitted, so you can determine whether they need to be submitted to other project areas. Go to List menu > Column Selection > External ID. Move the column next to the Issue or Status columns in the grid so that you can quickly see which issues were already submitted. Click the column header and then use the keyboard's Ctrl+ (Left or Right arrow) to move the column to its new destination.
  5. Perforce Job fields are not supported by AppScan® Enterprise.
  6. Standard JIRA fields can be customized, except for links and attachments that are automatically added during the defect submission process.
  7. The Description and Summary fields cannot be changed when you submit multiple defects to JIRA.
    Note: The Description lists all of the issue attributes that have values, including the IssueXML issue attribute that is created when issues are imported from XML.

About this task

Here is a sample Java™ script that illustrates a basic workflow: SampleJava.zip. There are a few lines that you might need to update in the sample:
  • private static String ASE_SCHEME = "https";
  • private static String ASE_HOST = "localhost";
  • private static int ASE_PORT = 9443;
  • private static String ASE_CONTEXT_ROOT = "/ase";
  • private static String ASE_USER = "username";
  • private static String ASE_PASS = "password";
  • private static String ASE_FEATURE_KEY = "AppScanEnterpriseUser";
  • private static String DTSWEB_CONTEXT_ROOT = "/dtsweb";
  • private static String JIRA_URL = "http://localhost:8080/";
  • private static String JIRA_PROJECT_ID = "DEMO";
  • private static String JIRA_USERNAME = "username";
  • private static String JIRA_PASSWORD = "password";
  • private static String JIRA_DEFECT_TYPE = "3";
  • private static int MAX_NUMBER_OF_APPLICATIONS_OR_ISSUES = 10000;
Note: To disable the certificate validation, remove the comment from this line: disableCertificateValidation();.

Procedure

  1. In an application in the Monitor view, select the issues that you want to submit as defects.
  2. Click List menu > Create Defect.
  3. On the Create Defect page, select JIRA, complete the URL, Username, and Password fields, and click Connect to test the connection to JIRA.
    Note:
    • You can enable the check box to Ignore SSL Certificate/Hostname verification; however, this is not a recommended practice.
    • After a successful connection, the defect tracking system URL, user name and SSL check box selection are stored as your user preferences, and the last selected defect tracking system is remembered for your next session.
  4. The fields that display on the Create Defect page reflect the content that JIRA expects to receive from AppScan Enterprise. Enable the Show optional fields check box to edit the additional fields.
  5. Select a Project Area and a Type, and click Create. Defects that are created successfully are listed on the page and include a link to the defect record in JIRA. Click Close.
  6. In AppScan Enterprise, go to List menu > Refresh or click the Refresh icon in the sidebar to update the issue list to display the External IDs.

Results

  1. If a single defect was successfully created in JIRA, you see a message at the top of the Monitor view (otherwise, creation successes and failures are displayed in the Create Defect dialog). Click the defect link to go to JIRA for more details. This process attaches a .zip file to the defect record in JIRA that contains information about the issue.
    • <issue_number>.htm (issue overview)
    • <issue_number>_details.htm (not available for third-party import issues). This file can include advisories and fix recommendations, and shows the first variant only.
    From the JIRA record, you can also link back to the issue ID in AppScan Enterprise.
  2. You also see an External ID attribute in the About this Issue dialog for the particular issue.
  3. If logging is enabled in the Administration view, JIRA defect creation and error messages can be found in <install-dir>\Liberty\usr\servers\ase\logs\console.log.