Automation rule: trigger Issue is created --> transition the Parent

Gonzalo Benitez de lugo December 1, 2020

The following automation rule is failing and I don't know why.
Any help would be much appreciated :-) 

The rule does the following:

  1. Trigger: when an issue is created
  2. If the issue is a Subtask
  3. Then check if the Parent is in the status [QA]
  4. If so, then move the Parent to the status [Review]

The error I'm getting says:

Action details:
Issue condition
The following issues passed:
KYP-1006
Branch rule / related issues
Error searching for related issues. This is most likely because the following issues don't have a related issue of the type you specified. Try narrowing your search to only include issues that contain links to related issues:
KYP-1006: "(key =) AND (project in (10205))" - Error in JQL Query: Expecting either a value, list or function but got ')'. You must surround ')' in quotation marks to use it as a value. (line 1, character 7)

 

Below a screenshot of the rule:

image.png

2 answers

1 accepted

2 votes
Answer accepted
Bill Sheboy
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.
December 1, 2020

Hi @Gonzalo Benitez de lugo 

I wonder if this is a timing issue and some information is not yet available after the Create Trigger.  Please consider trying to add a re-fetch action immediately after the trigger before any other logic.

Also, is this rule in a Classic or NextGen project?

Best regards,

Bill

Gonzalo Benitez de lugo December 3, 2020

@Bill Sheboy it's in a Next Gen project.

I added the "re-fetch" action and now it works. Awesome!! Thank you!

Like # people like this
Bill Sheboy
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.
December 3, 2020

You are welcome, and I am glad that helped you.

The re-fetch after the create issue trigger often helps, although it does slow down rules a few seconds.  Please keep that in mind if you use any chained rules, where one leads to the execution of another rule.

__Bill

0 votes
Liam Green
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.
December 1, 2020

Hi @Gonzalo Benitez de lugo 

What error does the log give for this?

Gonzalo Benitez de lugo December 1, 2020

@Liam Green I just added the error to the question. 

Apologize for not adding it from the very beginning. Thanks!

Suggest an answer

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

Atlassian Community Events