I'm not sure where my error is: I am setting a simple Text field (Id = "EpicLink") from javascript using cfSetValueWithEventPropagation. The field sets correctly. However, the rule that is monitoring the EpicLink field is not triggering. The rule does function correctly when the field is adjusted manually, or if the EpicLink field is updated from elsewhere in the form via a standard "Set Value" rule.
The Javascript (This sets EpicLink without error, but the Rule does not trigger):
<script>
function parseAuditDescription(formName, formId) {
const mydebug = true;
const v_AuditDescription = AJS.$(formName).find('#i_AuditDescription').val();
if(mydebug) alert(v_AuditDescription);
const rx_EpicLink = /\|Audited Epic\|(.*?)(?<!\\)\|/;
const val_EpicLink = rx_EpicLink.exec(v_AuditDescription);
if(mydebug) alert("EpicLink[0]: " + val_EpicLink[0]);
if(mydebug) alert("EpicLink[1]: " + val_EpicLink[1]);
if(mydebug) alert("EpicLink[2]: " + val_EpicLink[2]);
cfSetValueWithEventPropagation(formId, 'EpicLink', val_EpicLink[1]);
}
</script>
The Rule (works if EpicLink is modified manually or if EpicLink is modified by a "Set Value" Rule):
Rule for ConfiForms Field Definitions:
Field name: EpicLink
Condition: !EpicLink:[empty]
Action to execute: Lookup and set JIRA issue data
Values to set: EpicFVReleaseDate=fields.fixVersions.releaseDate&EpicSummary=fields.summary&EpicStatus=fields.status.name&EpicFixVersion=fields.fixVersions.name&EpicLabels=fields.labels&EpicComponents=fields.components.name
JIRA Issue Key: [entry.EpicLink]
Application link: XXXX (my Jira instance identifier)
No event propagation on value change: <unchecked>
Thanks in advance...