I have a custom field (Remedy_#) that exists in all of my projects. I want to build an automation that links issues that have the same value in that custom field.
I've spent some time trying to get the automation to work, but the issues are never matching the condition.
Screen shots show what I have and what my results are, yet all of those issues have matches in the custom field I'm trying to link based upon:
Thanks for any help you can provide.
Short answer: the rule you describe may not be possible as it appears to span multiple projects, and because automation rules have a processing limit of 100 issues for triggers it may never update some issues.
Longer answer, and some work-arounds:
The way your rule is written, the condition compares issues to themselves and then tries to link them. And the condition may be failing because there is a typo in the smart values.
Looking at each of these things first:
Your rule appears to use JQL with a scheduled trigger. In automation rules, the meaning of {{issue}} changes based on where you are in the rule. But for your case, {{issue}} and {{triggerIssue}} will be the same as there is no branching in the rule. So we would expect the condition to always pass as "true".
However, the smart value for the trigger issue is {{triggerIssue}} and not {{triggerissue}} as you have used.
Smart values are name, spacing, and case-sensitive. And often the smart value does not match the displayed field name on the issue views. When an incorrect smart value is used, it often evaluates to "null" and fails silently. And so your rule condition may be comparing a value to "null".
Next, it is likely the smart value for your field is not {{issue.Remedy_#}} as that has what appears to be an invalid character for a smart value. The how-to article below helps to identify the correct smart value (and custom field id) for any supported fields for automation rules.
The essential steps are:
https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Once you have found the correct smart values, the rule could still run into processing limits. And so a work-around would be to only run the rule for issues with a value in your Remedy_# field and which have no issue links. Then walk any related issues to add links when needed.
Kind regards,
Bill
Thanks Bill. Wow, what a thorough response! Fixed the typo. But still not working. I'm not worried about hitting the limit as my automation JQL searches only for issues with a value in Remedy_# created within the last 24 hours.
In trying to find the correct smart field name, very little is being returned:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The URL you are using (shown in the uri statement above) to get the field names is incorrect. It is missing the question mark between the Issue Key and "expand=names"
rest/api/2/issue/<issuekey>?expand=names
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Todd Skelton
What is the field type for the Remedy_# field?
What are the details of your rule trigger?
In your rule, in the comparison step you are trying to compare the values of the fields in, apparently, two different issues referenced by the {{issue}} and {{triggerIssue}} smart values. However, with the way your rule is structured, {{issue}} and {{triggerIssue}} are actually the same issue.
When you use a Scheduled trigger with a JQL each of the actions that follow the trigger in your rule will be executed for each issues found by that JQL. There is no trigger issue, really, because the rule is not triggered by an action that occurs on individual issue.
I'll be able to offer more specific suggestions after you tell us the field type of Remedy_#, and the details of your Trigger component.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply. Fixed the typo, but still an issue. I'm wondering if the remaining issue is that the automation is looking only at the current issue and not all issues that exist that have a value in Remedy_#. The field is a Text Field (single line).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks all. Was able to get this working...just had to tackle the automation in a branch so that it was looking at more than just the current issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.