Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting Removal of Labels

Kevin Jamieson September 16, 2025

I'm struggling to create an automation rule to detect when a given label is removed. E.g., if the label "Q4" is present, then removed, I want to know.

I can get the rule to trigger of a Value change for Labels field based on the value deleted change type- thats simple enough... however detecting WHAT changed is the struggle. 

All searching I've done online points to checking / adding logging for smart values such as:

  • {{#changelog.Labels.removed}}{{value}}{{/}
  • {{#fieldChange.removed}}{{value}}{{/fieldChange.removed}}

and a few others... but they are always blank!

What am I missing here?

2 answers

0 votes
Akash Singh
Community Champion
September 16, 2025

Hi @Kevin Jamieson

Because Labels is a multi-select field, several values can be added or removed in a single edit. To detect when a specific label was previously present but later removed, you need to iterate through the changes and check both states. This requires two separate conditions: one to examine the value before the edit and another to examine the value after. Here’s an example of how the rule would look:

Condition to check if label was present before edit,

{{#changelog.labels}}{{fromString}}{{/changelog.labels}}

 Condition to check if label was present after edit,

{{#changelog.labels}}{{toString}}{{/changelog.labels}} 

s1.png

Kevin Jamieson September 17, 2025

After tweaking an error being thrown based on exactly what you had as an example, the rule does not get triggered.

Screenshot 2025-09-17 153026.png

Akash Singh
Community Champion
September 18, 2025

@Kevin Jamieson Would it possible to share screenshot of the error? Also, if possible share screenshot of entire rule for troubleshooting.

Kevin Jamieson September 19, 2025

Here is the full rule with the text you provided in the "Field Value Changed" step. The "2nd half" of the rule was from previous attempts to get this working... but those IFs (i tried various flavors) never worked for me.

I had been trying to add log actions to print these variables, but they always print nothing... like the changelog objects do not exist.Screenshot 2025-09-19 085333.png

 

 

0 votes
Matteo Vecchiato
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2025

Hi @Kevin Jamieson ,

Which automation trigger are you using?

The change log variable is present only in the edit issue operations, as Ken in the doc:

{{changelog}}
  • Used with: any triggers that edit an issue

Reference: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/ 

Kevin Jamieson September 17, 2025

Field value changed

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events