Global automation multiproject linked issues condition does not return any issues
Asked by Rosana Casilli:

Good morning All!!

I am trying to create a global rule to be excecuted manually from Project A and change the status based on issue from Project A in issue in Project B

![AR.png](/t5/image/serverpage/image-id/223996i41BBEBCFAFE5E176/image-size/large?v=v2&px=999 "AR.png")

The problem I have is the the linked issues condition, although the JQL retrieves the issue that applies the condition, when the rule is manually excuted in the audit log show the following:

![AR.png](/t5/image/serverpage/image-id/223997i03B457A1311039D8/image-size/large?v=v2&px=999 "AR.png")

What am I doing wrong?

Thank you so much for your help.

Ro


Answers:
author: Mark Segall
body: Hi [@Rosana Casilli](/t5/user/viewprofilepage/user-id/1660030) - From what I can see, this rule will always fail. Your trigger issue is in a status of PRODUCTTWO, but then you branch into linked issues and then add a condition that for each linked issue, its linked issues status = READY TO RELEASE AND project = CA. Since your trigger issue is not in the CA project and status = PRODUCTTWO, it will not satisfy the linked issue condition.

comments: author: Rosana Casilli
body: Hi Mark!! thank you for you quick answer..

So if I want to change the status of linked issues in project CA that are in Ready to Release status to Close when the issue in project TS2 is in status PRODUCTIVO, how should the rule be?

Thanks in advance,

Ro


author: Mark Segall
body: You could do something like this...

Between your condition status = PRODUCTTWO and the Branch, add this:

* LookupIssues
  *

    ```
    project = CA AND issue in linkedIssues({{issue}}) AND status != "Ready to release"
    ```

* Advanced Condition
  * {{lookupIssues.size}}  
    Is Greater Than  
    0

Then remove the condition inside your branch


author: Rosana Casilli
body: Hi Mark!!

Thanks once again

this is how I have the rule right now after the changes, is it correct?

![AR.png](https://community.atlassian.com/t5/image/serverpage/image-id/224021i13CF8589D22AB703/image-size/large?v=v2&px=999 "AR.png")

If so, when I execute the rule:

![ar1.png](https://community.atlassian.com/t5/image/serverpage/image-id/224027i374D058A9A8B8019/image-size/large?v=v2&px=999 "ar1.png")

It succeded but the advance compare condition is failing

I need that issues linked to TS from CA project in status "ready to release" to be closed.

sorry for bothering but I am struggling here... :(

Ro


author: Mark Segall
body: So a few tweaks:

* The lookup issues and subsequent condition should be BEFORE the branch. This will make it so that it validates whether the linked issues even meet the criteria before branching through the various CA issues.
* As I look at this again, you'll want to change a couple things:
  * The Advanced condition should actually be Less Than 1 (error on my part)
  * For the branch, I'm assuming you only want linked CA issues to be transitioned so you'll want a condition for Project = CA inside the branch


author: Rosana Casilli
body: thanks a lot Mark!!! it worked perfectly!


Tags: cloud

jira-software

jira-work-management-cloud