I created an automation in a project that is a manually triggered rule (for now).
In the automation, I do a lookup with the following query: "issue in linkedissues({{issue.key}}) and type = bug "
When I run the same query in ScriptRunner, I get 11 results for the target issue, so I believe this is correct:
In the automation, I then edit the issue using {{lookupissues.size}}. When I run to automation, the field is set to zero, and not the expected 11.
What am I doing wrong here?
I did try changing the edit value from "{{lookupIssues.size}}" to "={{lookupIssues.size}}" and then got the following error in the audit log:
Hi @Matt Noe
Works fine here:
Is the field you are trying to edit available on the specific project?
The field is available on the project. The only thing that I can think of is that the linked issues is a part of a separate project? Does my automation have to be moved to global because of it?
Project being run against is CBE-XXXXX Linked issues are BUG-XXXXX
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Prior of changing the rule to global, try the following query on your lookup component:
issue in linkedIssues(CBE-16626) and issuetype = bug
Click validate query and see how many issue it will return
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Alex Koxaras -Relational- . I tried it on both the project specific automation and the global. Project specific returns 0 and global returns 11. Looks like that is my problem.
Thank you for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.