How do I troubleshoot the automation error: Failed to retrieve smart labels from AI.

Edward Hunter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2025

In my automation, I am adding labels with AI.  When a document is published or updated, the AI applies various labels based on the content of the body. 

Every so often however, I get an error in the audit log with the message:

Add label with AI: Failed to retrieve smart labels from AI

How do I triage this? No other information is available and when examining the documents in question, they appear to contain the verbage that would generate automatic labels.Screenshot 2025-02-26 at 11.21.46 AM.png

2 answers

0 votes
Marc - Devoteam
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.
February 26, 2025

Hi @Edward Hunter 

Welcome to the community.

Whenever you ask for help with an Automation Rule it will help us to help you if you provide:

1. what type of project is this (e.g., company-managed, team-managed, etc.), 

2. images that show your complete rule.

3. images showing the details of any relevant actions/conditions/branches.

4. images showing the Audit Log details for the rule execution.

5. Explain where the issue is.

These questions are not for not willing to help, but to have community members understand on how automation works.

0 votes
David Nickell
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.
February 26, 2025

This is purely speculative but it is where I would start >>>

If the AI fields are being added to your ticket at the same time your automation is running, you may be encountering a problem where the Issue hasn't been saved with the fields yet.  Therefore Automation may not be able to see them.   It's similar to the concept of a commit in a database. You can't read the data in a record that hasn't been saved yet.

As I said -- super speculative but I know prior to automation in JIRA, some workflow tricks with scripting would have a similar issue.   you can't run scripts until the data is there

Edward Hunter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2025

This makes sense, though in this particular case it isn't JIRA, it's just Confluence pages.  That said, I suppose the same thing could be applicable.  It's just that the triggers for the automation are when a document is published, which seems like a pretty definitive trigger.

Suggest an answer

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

Atlassian Community Events