/
Bulk-close Jira issues with Cloudaware comments

Bulk-close Jira issues with Cloudaware comments

This guide explains how to automate closing Jira issues with Cloudaware comments. Cloudaware adds comments to Jira issues based on set criteria. A comment could serve as an effective trigger for bulk closure of the issues within Jira.

Prerequisites

 

  1. Ensure that custom fields for mapping are created and added to the issue layout in Jira.

  2. Ensure that Jira actions are set up and required fields are created.

 

Set up automation in Jira

 

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

 

Configure automatic change of an issue status to 'Resolved' in Jira:

 

  1. In Service Desk project, select Project settings → Automation.

  2. Select the tab 'Rules'. Click Create rule.

    Screenshot_2025-02-04_at_1_24_07_1_PM.png

     

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

    3.1. Add a trigger for When condition: Issue commented → select Comment is the main action → click Next.

    Screenshot_2025-02-05_at_3_19_04_PM.png

     

    Screenshot_2025-02-04_at_5_24_20_PM.png

     

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

    Screenshot_2025-02-05_at_3_22_24_PM.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"*

    Screenshot 2025-02-05 at 3.23.14 PM.png

    Click Next.

    3.3. Add the THEN block → Transition issue RESOLVED on Destination Status → Next.

    Screenshot_2025-02-05_at_3_29_52_PM.png

     

    Screenshot 2025-02-05 at 3.32.37 PM.png

     

  4. The automation summary should look as follows:

    Screenshot 2025-02-04 at 5.47.14 PM.png

     

  5. Click Turn on rule → give the rule a name → Turn on rule to enable the automation right away.

    Screenshot_2025-02-05_at_3_34_00_PM.png


    OR
    Click Save rule without enabling → give the rule a name → Save rule without enabling to enable the automation later.