Automation rule: linked issues if block error

Adeleke Adefabi
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!
December 16, 2024

I have this automation rule:

When an issue type transition from a set of statues to Ready and

an if condition that matches this JQL:

issueLink = {{issue.key}} AND "Tags[Labels]" = Stop AND status NOT IN (Duplicate, "Won't fix", Ready) ORDER BY created DESC

if all this conditions are met, a comment should be added and transition the issue to the New status.

When I run the jql on the issue list, the automation should work on one issue. But I keep getting this error below

Action details:

["10157"]

 

If block

The following issues passed:

EQ-20918

The following issues did not match the condition:

EQ-20918Screenshot 2024-12-16 at 8.58.41 AM.pngScreenshot 2024-12-16 at 8.56.11 AM.png

1 answer

0 votes
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 16, 2024

Hi @Adeleke Adefabi ,

First of all, you might want to remove your site name in your post. 

Next, if you run:

issueLink = EQ-20918 AND "Tags[Labels]" = Stop AND status NOT IN (Duplicate, "Won't fix", Ready) 

As query do you get an issue as response?

Adeleke Adefabi
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!
December 16, 2024

Thank you for that, it was an error..and to the question, yes one issueScreenshot 2024-12-16 at 9.31.45 AM.png

Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 16, 2024

I don't see anything wrong with the JQL.

But perhaps you can replace the JQL in the rule for: issueLink = EQ-20918 AND "Tags[Labels]" = Stop AND status NOT IN (Duplicate, "Won't fix", Ready) 

And test again.

And/Or add a log action before the if statement with:

issueLink = {{issue.key}} AND "Tags[Labels]" = Stop AND status NOT IN (Duplicate, "Won't fix", Ready) ORDER BY created DESC

(Note that the 'ORDER BY' clause does not matter and can be removed.)

And why do you use an if/else statement. You also could use two if statements sequentially.

 

Adeleke Adefabi
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!
December 16, 2024

Used the first JQL: issueLink = EQ-20918 

 

And restructure the automation rule.

Got the following errors...

And I have no issue security setup on the projectScreenshot 2024-12-16 at 10.18.36 AM.pngScreenshot 2024-12-16 at 10.37.28 AM.png

Suggest an answer

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

Atlassian Community Events