OBLYTECH Logo
OBLYTECH Logo

Connect the Jira integration to Vulnerability Response

To connect Jira to Vulnerability Response, install the Vulnerability Response integration with Jira from the ServiceNow Store and confirm its prerequisites. Then create an Agile Tool configuration rule at All > Agile Management for VR > Configure Agile Tools. The rule sets which records become Jira issues and how Jira statuses map to ServiceNow states.

Why the Jira link matters for remediation tracking

Vulnerability managers create vulnerability items in ServiceNow and assign them to remediation users. Developers working on Application Vulnerability Response can keep working in the issue tracker they already use. The Jira integration creates a Jira issue for each vulnerability item that matches a configuration rule and keeps the two records synchronized in both directions. Progress recorded in Jira appears on the vulnerability item, and changes a manager makes in Vulnerability Response reach the Jira issue.

For background on how vulnerability data reaches the platform in the first place, see integration patterns for Vulnerability Response.

Check the prerequisites before you install

The Jira integration depends on several other ServiceNow components. Confirm each one on your instance before you request the app.

  • The Vulnerability Response application is installed and activated. The Jira integration requires it.
  • The Vulnerability Response Integration with Agile Management is installed. The Jira integration requires it.
  • The Integration Hub plugin is installed. The Jira Spoke requires it.
  • The latest version of the Jira Spoke is installed.

The Jira integration is available as a separate subscription, so confirm your entitlement before you start. Match the Jira integration version to your Vulnerability Response release, and check the compatibility information for that pairing before you upgrade either component. The release notes for the Vulnerability Response integration and the Jira Spoke list the changes in each version.

Plan the Jira side before you build anything. The integration assumes familiarity with Jira and its API, so involve the person who administers your Jira projects. Collect the project, issue type and workflow status names your teams use, because the configuration rule and the state mapping both ask you to choose from them. For help planning this work, see ServiceNow implementation.

Install the Jira integration from the ServiceNow Store

Installing the application requires the admin role.

  1. Log in to the instance that will run the integration.
  2. Open the ServiceNow Store and search for the Vulnerability Response integration with Jira application.
  3. Open the application tile and read the other requirements and dependencies sections that apply to your setup.
  4. Select Request App, enter your Now Support login, then select Get.
  5. Enter the instance name and the reason for the instance, select Validate Instance, then select Request.
  6. Wait for the email with the detailed installation instructions. Then go to System Applications > Applications, locate the application, select it, and select Install.

Non-production and development instances do not need the entitlement steps. Those instances skip straight to activating a ServiceNow Store application, so check the type of instance you are working on before you submit the request.

Assign the roles each step needs

Grant each role only to the people who perform that task.

  • Installing the application: the admin role.
  • Creating configuration rules that create or update issues: Agile Tool Admin (sn_vul_agile.agile_tool_admin).
  • Selecting the agile tool that creates issues for an entity table: JIRA Admin (sn_vul_jira.admin).
  • Working through the Agile Tool configuration procedure: one of sn_vul.app_read_all, sn_vul_container.read_all, sn_vul_agile.agile_tool_admin, or sn_vul_jira.admin.

Create an Agile Tool configuration rule

Configuration rules live under All > Agile Management for VR > Configure Agile Tools. A rule names the entity table to watch, the filter that selects records, and the Jira project and issue type that receive the issue. Build a rule in this order:

  1. Go to All > Agile Management for VR > Configure Agile Tools and select New.
  2. Fill in the form fields described below.
  3. Select Save and Fetch Projects. This loads the Jira projects into the Project field and validates the Agile tool credentials.
  4. Select the Project, Issue Type and Assign To values.
  5. Map the issue fields to ServiceNow fields, then submit the field mapping.
  6. Save the rule. Right-click in the form header to save your changes. The rule then appears in the Agile Tool Configuration table.

The form contains these fields:

  • Name and Order: a label for the rule and its position among the configuration rules.
  • Agile Tool: the agile platform that receives the issues.
  • Entity Table: the table the rule applies to.
  • Condition: a filter on the entity table. Issues are created for records that match the filter.
  • Auto Issue Creation: when selected, the rule runs when a new record is created in the entity table. For records that already exist, use the list action.
  • Project, Issue Type and Assign To: the Jira project, the issue type, and the assignee. Select None to keep new issues unassigned.
  • State Mapping: the link between Jira issue statuses and ServiceNow entity states.

Choose the entity tables the rule watches

By default, the Entity Table choice list shows Application Remediation Task and Container Remediation Task. To add the Application Vulnerable Item and Container Vulnerable Item tables, open the sn_vul_agile.tablesToShow system property and set the Value to all. If your team tracks application vulnerabilities, check how the source repositories feed those items before you build a rule that watches them. See connecting GitHub repositories to application vulnerability response for that step.

Map fields and states so changes sync both ways

Field mapping and state mapping decide what a change in one system does in the other. Set both before you turn on Auto Issue Creation, so the first issues arrive with the fields and statuses you expect.

Map the issue fields

The Summary and Description fields map by default. Select Add Field Mapping to map other Jira fields to ServiceNow fields. Only String and Choice fields can be mapped. The mapping form shows the Issue Field list for the project and issue type you selected, and the Entity Fields list for the entity table on the rule. Select Use the Script to map the issue field with entity fields through a script instead of a direct pairing.

Map the states between Jira and ServiceNow

Each Agile Tool State Mapping record connects one ServiceNow entity state to one Agile Tool Status. Fill in the Name, the Agile Tool, the Entity Table, the Project, the ServiceNow Entity State and the Agile Tool Status. The state mapping table covers the states of the Application Vulnerable Item, Container Vulnerable Item, Application Remediation Task and Container Remediation Task. Select an existing state mapping on the rule, or create a new one from the State Mapping field.

Set batch sizes, retries and scheduled jobs

Batch size controls how many issues the integration creates in one pass. The correct property depends on where Jira runs.

  • Jira Cloud: set the sn_vul_jira.cloudBulkSize property. Jira Cloud accepts a maximum of 50 issues per batch, so do not set a higher value.
  • Jira Server: set the sn_vul_jira.onPremBulkIssue property.

Property values are stored as strings. A script that reads one with gs.getProperty() receives text, so a value of true comes back as the string ‘true’ and not as a Boolean. Check the current value of each property on your instance before you change it.

Control retries for failed issue creation

Each issue creation request is stored as a payload in the Agile Tool Manifest table. The sn_vul_agile.ManifestErrorCount property sets the maximum number of times a manifest that has an error is processed.

Run the scheduled jobs in order

After the initial run, scheduled jobs run the integrations every day, chained so that each job starts after the one before it. You can also run an individual scheduled job by hand, which is useful while you test one stage at a time.

Test the connection before you go live

Test on a non-production instance with one Jira project, and work through the stages in order.

  1. Select Save and Fetch Projects on the rule. If the projects load, the Agile tool credentials are valid.
  2. Create a test record that matches the rule condition, with Auto Issue Creation selected. Confirm that a Jira issue appears in the project you chose, with the Summary and Description filled in.
  3. Change the status of the Jira issue, then confirm that the vulnerability item moves to the ServiceNow state in the mapping.
  4. Change the state of the vulnerability item in ServiceNow, then confirm that the Jira issue status changes to the mapped value.
  5. Run the scheduled jobs by hand, then check the manifest and data resource records for the test item.

If the items themselves look wrong before any sync runs, check the data first. The steps for that are in verifying vulnerable item detection data after an integration run.

Questions about issue creation and sync problems

Why does a matching record not create a Jira issue?

Work through the rule in order. Confirm that the record matches the Condition, that Auto Issue Creation is selected for a new record, and that the entity table is one the rule can see. Then check the field mapping. A mandatory Jira field with no mapping stops the rule from creating issues, so compare the required fields in the Jira issue type against the Agile Tool Field Mapping records on the rule.

Which Jira field types can I map?

Only String and Choice fields can be mapped through the field mapping form. A mandatory field of another type cannot be mapped through the form, and an unmapped mandatory field stops issue creation. Confirm with the Jira administrator how that field gets its value before you build the rule.

What happens when an issue creation fails?

The failed request stays in the Agile Tool Manifest table with its payload. Read the payload to check the values that were sent, then correct the mapping or the Jira-side field that caused the problem. A higher ManifestErrorCount value means a bad payload is processed more times before it stops.

Where can I see the details of a Jira issue that ServiceNow created?

The Agile Tool Data Resource table holds the information about each Jira issue the integration created. Use it to confirm which Jira issue belongs to a given vulnerability item.