Info |
---|
This guide explains how to add a Jira account to Cloudaware and configure actions for Cloudaware to automatically discover Jira issues in the CMDB and/or create issues in Jira based on specified criteria. |
...
Auto-discovery of Jira issues related to specific CMDB CIs
Creation and updating of Jira issues when specific criteria are met (e.g., new incident, policy violation, vulnerability scan, etc.)
...
Add Jira account to Cloudaware
Cloudaware discovers Jira issues and automatically associates imported records with corresponding CIs in CMDB.
Add Jira account to Cloudaware
Log in to Cloudaware account → Admin.
Find Jira Accounts & Actions in the list of Cloud Integrations. Click +Add.
Fill out the form:
WHERE
Name - a meaningful name for Jira integration, e.g. Prod Jira
URL - Jira URL in the format https://jira.companyname.com
Password - Jira password (for cloud version of Jira, use a token)
...
Create custom fields in Jira
For Cloudaware will to automatically associate discovered Jira issues with corresponding CMDB CIs using custom fields. Add , add the following custom fields* in Jira:
Object Type
Object Identifier
...
Manage permissions and create fields in Jira
Grant Cloudaware the
user/project: ADD_COMMENTS
permission.Log to the Cloudaware account and navigate to Setup → Objects.
Select the object for which Jira issues should be created for (in this example, CloudAware Vulnerability Scan).
Review the section 'Custom Fields & Relationships' to define fields that should be displayed in an issue's description. For our use case, the following fields are used: Priority, Risk, Severity, CVSS Number, Host, Port, Protocol, Description, Disappearance Time.
Note |
---|
When creating fields in Jira, use Field Label names from Cloudaware, as fields names must match. |
...
Set up Cloudaware workflows to create issues and post comments in Jira
Anchor | ||||
---|---|---|---|---|
|
Once you have configured Jira Action, set up two different workflow rules - for creating a Jira issue (1) and adding a comment (2).
1. Workflow Rule for Jira issue creation:
...
Click Save&Next.
Add Workflow Action → New Outbound Message:
Object: CloudAware Vulnerability Scan
Name: Jira Notification: New Vulnerability Detected
Endpoint URL: paste the URL copied from the integration's details
Select the fields to be displayed as set up in the Integration details:
...
Note that Name is a mandatory field.
Click Done. Click Activate to activate your workflow.
2. Workflow Rule for posting a comment in Jira issue:
...
Object: CloudAware Vulnerability Scan
Name: Jira Notification: Vulnerability Fixed
Endpoint URL: paste the URL copied from the integration's details
Select the fields to be displayed as set up in the Integration details:
...
Click Done. Click Activate to activate your workflow.
Jira issue sample | Cloudaware comment sample |
---|---|
...
Bulk close Jira issues with Cloudaware comments
Based on our use case, we can consider all issues with a comment as not requiring further actions since a vulnerability the Jira issue informs of has been fixed.
Follow these steps to configure automatic change of issue status to 'Resolved':
In your Service Desk project select Project settings → Automation.
Select Add rule.
Select Custom rule from the list, then select Next.
Give your custom rule a name and a description.
Configure your rule by defining the WHEN, IF, and THEN fields:
5.1. When comment added
5.2. If comment contains This vulnerability is fixed and deleted on
5.3. Then transition issue to status "Resolved"
...
Populate custom fields in Jira
Anchor | ||||
---|---|---|---|---|
|
This option requires having custom fields Object Type, Object Identifier and fields that were created for Jira actions.
Based on our use case, we can consider having all custom field values populated automatically. This will also provide a great visibility in Cloudaware CMDB as each Jira issue will be linked to a CMDB record.
...