Skip to main content
Skip table of contents

Issue Tracker Integrations

Overview

Mend provides the ability to integrate with issue tracking systems, in order to automatically create issues in those systems when a policy match occurs. As a result, issues automatically open in the issue tracking system and are automatically filled with the relevant Mend information required to mitigate the risks triggering the creation of the issue.

This integration is implemented as a generic platform, exposed by external/public APIs, whereupon Mend provides a set of out-of-the-box plugins for specific common Issue tracking systems. The triggering for the issues' creation occurs when a policy of the type “Issue” is matched with a library. This occurs no matter which plugins you are using.

NOTE: If you have already defined a previous integration of Mend with an issue tracking system, and created policies to trigger issues creation, it can continue working “side by side” with the new integration until the “old” one will be deprecated. Ensure you define new policies for the new integration. To view the documentation for the legacy issue tracker integration, click here.

Notes:

Jira Data Center and Server Plugin

Overview

The Jira Data Center and Server Plugin supports the integration with the Jira Server and Jira Data Center solutions.

Prerequisites

To configure the integration, ensure the following:

  • Jira Data Center or Server versions from 8.0 to 9.17.2

  • Admin permissions to Jira

  • Admin permissions to mend

How the Jira Data Center and Server Plugin Work

The Jira Data Center and Server Plugin integration works in the following way:

  1. The Jira Data Center and Server Plugin periodically queries the Mend application for “Issue” Policy matches. These matches represent Issues the plugin should create in Jira.

  2. A corresponding Mend Issue (of type WS_Issue) is created in Jira for each match with all the relevant information in dedicated fields that can be sorted and filtered. For details, see Mend Issue Tracker Information.
    The Mend Issue will be created based on the default issue type schema defined for each mapped Jira project.

  3. The Mend Issue is updated automatically following changes that occur on mend. If the policy no longer affects the relevant project or the library is no longer in the inventory of the project, a relevant comment is added to the Mend Issue.

  4. The Mend application is updated following changes in the Issue statuses.

Installing and Configuring the Jira Data Center and Server Plugin

To install and configure the plugin, do as follows:

  1. Log in to Jira with Admin permissions.

  2. Navigate to Manage Apps in the JIRA ADMINISTRATION section.

  3. Search for Mend in the Atlassian Marketplace search box.

  4. Find the Mend Integration for Jira Server and click Install.

  5. After the installation, you will be directed to the configuration page. (If not, in the User-Installed Apps list, navigate to the Mend Jira Plugin and click Configure).

  6. The Activate Your Mend License screen is displayed. Enter the activation key (to generate an activation key, refer here) in the provided box, and click Next. In case you are using a proxy, press the Show Proxy Settings button to set it up.
    NOTE: If the activation key cannot be verified, it might be expired or you might be experiencing connectivity issues. In either case, contact Support.

  7. The plugin mapping screen is displayed. Continue to Mapping the Mend Projects to the Jira Projects.

Mapping the Mend Projects to the Jira Projects

In the plugin mapping screen, you can define (or map) in which Jira projects the issues that will be created according to the relevant Mend scope.

To map the Mend projects to the Jira projects, do as follows:

  1. Map the Mend projects to the Jira projects in which the issues will be created, according to the Mend scope and the match type.

    • In WS Product, select the product.

    • In WS Project, select one or more projects, or select Select All.

    • In WS Policy Match, create a mapping of all relevant policy matches for the project (for example, By License Group, Security Vulnerability Severity, etc.), or Select All.

    • In Jira Project, select the relevant Jira projects for your mapping.

  2. Select a default Jira project in which Issues without a specific mapping will be created. This is a mandatory setting; if no other mapping is done, all Issues will be created in the default Jira ticket board.

  3. Click Save.

  4. Proceed to Creating a Policy to Trigger Issues in order to trigger Issue creation.

Jira Cloud Plugin

Overview

The Mend Jira Cloud Plugin supports integration with the Jira Cloud solution and offers the following options:

Note: Only one option for the Mend Jira Cloud plugin can be active at a time. You can switch between options via the Show Advanced Settings button in the Mend Jira Integration page.

Jira issue creation - Prerequisites

To configure the issue-creation integration, the following is required:

  • Admin permissions to Jira

  • Admin permissions to Mend

Jira issue creation - How the Jira Cloud Plugin works

The Jira Cloud Plugin issue-creation integration works in the following way:

  1. The Jira plugin periodically queries the Mend application for “Issue” Policy matches. These matches represent Issues the plugin should create in Jira.

  2. A corresponding Mend Issue (of type WS Issue) is created in Jira for each match with all the relevant information in dedicated fields that can be sorted and filtered. For details, see Mend Issue Information.
    The Mend Issue will be created based on the default issue type schema defined for each mapped Jira project.

  3. The Mend Issue is updated automatically following changes that occur on mend. If the policy no longer affects the relevant project or the library is no longer in the inventory of the project, a relevant comment is added to the Mend Issue.

  4. The Mend application is updated following changes in the Issue statuses.

Jira issue creation - Installing and configuring the Jira Cloud Plugin

To install and configure the issue-creation plugin, do as follows:

  1. Log into Jira with Admin permissions.

  2. Navigate to Find new apps in the Apps section.

  3. Search for Mend in the search box.

  4. Find the Mend Integration for Jira Cloud and click Install.

  5. Navigate to the Mend plugin in the Apps section, after the installation is completed:

6. The Activate Your Mend License screen is displayed. Enter the activation key (to generate an activation key, refer here) in the provided box, and click Next

NOTE: If the activation key cannot be verified, it might be expired or you might be experiencing connectivity issues, contact Support.

7. The plugin mapping screen is displayed. Continue to Mapping the Mend Projects to the Jira Projects.

Jira issue creation - Mapping your Mend projects to Jira projects

Only Jira company-managed projects are supported by the plugin.

In the plugin mapping screen, you can define (or map) in which Jira projects the issues that will be created according to the relevant Mend scope.

To map the Mend projects to the Jira projects, do as follows:

  1. Map the Mend projects to the Jira projects in which the issues will be created, according to the Mend scope and the match type.

    • In WS Product, select the product.

    • In WS Project, select one or more projects, or select All.

    • In WS Policy Match, create a mapping of all relevant policy matches for the project (for example, By License Group, Security Vulnerability Severity, etc.), or select All.

    • In Jira Project, select the relevant Jira projects for your mapping.

  2. Select a default Jira project in which Issues without a specific mapping will be created. This is a mandatory setting; if no other mapping is done, all Issues will be created in the default Jira ticket board.

  3. Click Save.

  4. Proceed to Creating a Policy to Trigger Issues in order to trigger Issue creation.

Mend Jira issue information

The Mend Issue (WS Issue type) tickets hold all the relevant information that is created by the plugin in dedicated fields.

In order to provide as much information as possible in the Jira issue regarding the library's risks and how to mitigate them, library aggregated data is also provided to help you to easily filter and sort the Jira issues, and create a prioritized backlog for mitigating the risks found by Mend.

Note: If you cloned the default Jira Issue schema that includes Mend fields prior to January 2nd, 2023, you will need to manually add the WS-NumOfCriticalSevVuls field to your cloned schema(s).

Following are the dedicated Mend fields that are created by the Jira plugins:

  • WS-Library: Name and link of the library that was matched to the policy.

  • WS-LibraryHierarchy: The hierarchical level of the library which indicates whether the library is a direct or a transitive dependency.

  • WS-PolicyName: Name of the policy that is matched with the library.

  • WS-PolicyScope: Level of scope to which the policy applies - organization, product or project.

  • WS-PolicyMatchType: Name of the policy match type (for example, License Group).

  • WS-PolicyMatchValue: Value of the policy match type (if relevant).

  • WS-Project: Project to which the library belongs.

  • WS-Product: Product to which the library belongs.

  • WS-Organization: Organization to which the library belongs.

  • WS-NumOfCriticalSevVuls: Count of the vulnerabilities with critical severity found for the library.

  • WS-NumOfHighSevVuls: Count of the vulnerabilities with high severity found for the library.

  • WS-NumOfMedSevVuls: Count of the vulnerabilities with medium severity found for the library.

  • WS-NumOfLowSevVuls: Count of the vulnerabilities with low severity found for the library.

  • WS-IsAffectedByVuls: A boolean value indicating whether at least one of the vulnerabilities found for the library is traced as effective by Prioritize.

  • WS-MaxVul_CVSS_Score: CVSS score of the vulnerability that has the highest score of all the vulnerabilities found for the library. Using CVSS score rather than severity will help you to estimate how risky is the library.

In addition to all the relevant data, the ticket description contains the following information:

  • Library Path: Path to the location of the library in the system.

  • Dependency Hierarchy: The library’s hierarchical path. Note that the library is limited to 3 hierarchical paths.

  • Security Vulnerabilities: Links to the security vulnerabilities with their corresponding Prioritize shields when relevant.

Create a Mend policy to trigger Jira issues

Create a policy to trigger issues by doing the following:

  1. Open the Policies page.
    You can create a policy on any level but it must correspond to the mapping.

  2. Click Add Policy.

  3. Create the policy as required. In Action, select Issue.

  4. In Issue Settings, in Tracker Type, select Issue Tracker Plugin.

  5. Click Add to revert to the Policies page showing the Issue policy created in mend.

When a policy is matched with a library (as a result of a scan or when applying policy changes to existing inventory), an issue creation is triggered in the Mend application. The plugins periodically (once an hour) fetch this information and create the corresponding issues in Jira.

Mend Service User for Jira Integrations

When the Jira integrations run through their first sync, a service user is automatically created within the integrated Mend organization. It will have the name “issue_tracker_int_<MendOrganizationName>”. This service user is automatically added to the “admins” Group (with organization administrator permissions). The Jira integrations use this service user to fetch the “Issue” policy violations from your organization via the APIs also used in Creating Your Own Issue Tracker Plugin:

Ignoring Mend alerts

The Jira Plugins support an option to ignore Mend alerts following the completion of the corresponding Mend issue. The status of the Mend risk will be set to IGNORED when the Jira ticket is moved to a status category “DONE”/”COMPLETE”.
To enable this feature, do the following:

  1. In the Plugin configuration page, click Show Advanced Settings.

  2. Click Ignore alerts based on tickets completion.

If you don’t want to ignore alerts for issues that are closed:

  • Deselect Ignore alerts based on tickets completion.

Note: the Jira Plugin doesn't move or change the status of a Jira Issue (for example, “OPEN" then moved to "DONE" or "COMPLETE"). If the alert is resolved on the Mend UI side, the plugin adds a comment to the relevant Jira Issue, stating it no longer affects the Jira Project. The Jira Issue will remain open, until a user moves it to "DONE" or "COMPLETE" themselves.

Limitations

  • Each Jira Plugin can be connected to a single Mend organization.

  • The Jira projects used by the integration should not include mandatory fields; if they do, the Mend Issue should be set to exclude them. For instructions on how to exclude mandatory fields in a Jira Cloud configuration to enable the Mend integration to open tickets, see Excluding Mandatory Fields for Mend Integration.

  • It is not recommended to change the issue type of the Mend Issue after its creation. In order to keep Mend and Jira in sync, the following fields should be maintained: WS-Project_Token, Library_UUID, Policy_Id.  

  • Mend Issues created by Jira Plugins should not be deleted, as this will cause Mend and Jira to go out of sync.

Appendix: Generating an Activation Key

To generate an activation key, do as follows:

This procedure enables you to create a token with which to validate the Jira integration.

  1. In the Mend application, click Admin. The Organization Administration screen is displayed.

  2. In the Integration area, click Issue Tracker Settings. The Issue Tracker Settings screen is displayed.

  3. In the Issue Tracker Plugin section, click Generate Activation Key. Copy the key for later use.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.