Remove labels for issues in bulk by using Jira Command Line Interface (CLI)

This article explains how to remove labels in bulk from Jira issues with Jira Command Line Interface (CLI).

Instructions

  1. Form a JQL query to find the target issue from which labels are to be removed. Refer to the following sample JQL for reference:

    project = ABC AND issuetype = Bug
  2. Combine runFromIssueList and removeLabels to remove the labels for the target issues. This example works because runFromIssueList has the jql parameter and removeLabels has issue and labels parameters.

    --action runFromIssueList --jql "project = ABC AND issuetype = Bug" --common "--action removeLabels --issue @issue@ --labels "@all" "
  • Additionally, use the suppressNotify parameter to suppress notifications for users. 
  • It is recommended to test this scenario in a non-production environment, or, run the action with the --simulate parameter to verify the behavior before implementing it in production.