Subj
I tried both #1
issue IN linkedIssues("{{issue.key}}") and Project=PROJECTNAME
issue IN linkedIssues("{{triggerIssue}}") AND project = PROJECTNAME
and confirmed the value of {{issue.key}} and {{triggerIssue}} in a separate Log Action.
But the log for Lookup issues says:
A search during custom value definition found no issues.
Some notes: JQL with actual issue key works as expected. Linked issue and triggerissue are in different projects, but the rule is applied to both. I can't validate query in the Lookup Issue pane when inserting #1 or #2 in it. If I insert an actual issue key, the validate query works as expected. The rule trigger is When Issue Transitioned.
Could someone please confirm it and maybe share a workaround?
Hi @Daniil Lazarev -- Welcome to the Atlassian Community!
What is the scope of your automation rule: single project, multiple-projects, or global?
Single project-scope rules can create (or clone) issues into other projects, but they cannot view or edit the issues in other projects. That takes a multiple-projects or global scope rule. Your Jira Site Admin will need to change the scope of a rule.
If that does not help, please post images of your complete automation rule and the audit log details showing the rule execution. Those will provide context to help explain this symptom.
Kind regards,
Bill
Hi @Bill Sheboy !
Thanks for your comment.
Shortly: this rule stops working when our Jira Instance starts freezing due to hitting database max pool connections. We'll resolve the issue of the limits first and after that, I'll update this topic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am following up to learn if you solved this question yet. Thanks!
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a global rule but the automation does still not work because of the lookup issues section.
It seems like smart values can not be used in lookupIssues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try using {{issue.project.key}} instead of {{issue.project.name}} in the JQL expression.
Smart values can be used in the JQL for the Lookup Issues action. There are exceptions with dynamic smart values, and they may be worked around by first storing the JQL in a created variable to force the evaluation order and then using the variable in the Lookup Issues action.
Kind regards,
Bill
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.