Skip to main content
Skip table of contents

Bulk-close Jira issues with Cloudaware comments

This guide explains how to set up Jira automation to close issues that include Cloudaware comments. Cloudaware can post comments to Jira issues when certain conditions are met. Jira supports bulk closure of issues based on such comments.

Use case: A security team wants to bulk-close Jira issues if the related vulnerabilities are fixed and no further action is needed. Comments posted by Cloudaware, e.g., when a vulnerability is resolved, can act as triggers for this automation.

Prerequisites

 

  1. Ensure that custom fields Object Type and Object Identifier are created and added to the issue layout in Jira.

  2. Ensure that https://cloudaware.atlassian.net/wiki/spaces/DOCS/pages/4133453854 are configured and required fields are set.

 

Set up Jira automation

 

Note that the Jira action for Cloudaware comments must be set up before enabling this automation (see this guide).

 

Automatically change issue status to Resolved when Cloudaware posts a comment indicating a vulnerability is fixed.

 

  1. In the Service Desk project, go to Project settings → Automation.

  2. Open the Rules tab → click Create rule.

    Jira - Bulk-close Jira issues with comments - create a rule.png

     

  3. Configure the rule by defining the WHEN, IF, and THEN blocks:

    3.1. Add a trigger for WHEN block. Select Issue commented → select Comment is the main action → click Next.

    Jira - Bulk-close Jira issues with comments - add a trigger for When.png

     

    Jira - Bulk-close Jira issues with comments - select the comment type.png

     

    3.2. Add the IF block. Choose the component {{smart values}} condition:

    Jira - Bulk-close Jira issues with comments - add If block.png

    Set up the criteria as follows: 
    First value: {{comment.body}} Read more about triggers
    Condition: contains
    Second value: "This vulnerability is fixed and deleted on"*

    Jira - Bulk-close Jira issues with comments - set up smart values condition.png


    Click Next.

    3.3. Add the THEN block. Select Transition issue RESOLVED for Destination Status → click Next.

    Jira - Bulk-close Jira issues with comments - add Then block.png

     

    Jira - Bulk-close Jira issues with comments - select the transition status.png

     

  4. The automation summary should look as follows:

    Jira - Bulk-close Jira issues with comments - cheсk the automation summary.png

     

  5. Click Turn on rule → name the rule → click Turn on rule to enable the automation.

    Jira - Bulk-close Jira issues with comments - turn on the rule.png
JavaScript errors detected

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

If this problem persists, please contact our support.