I was trying to set the value of a label with return data from an API call.
In the end I changed to setting a Javascript Variable instead but I'd love to know what I'm doing wrong as the label value never changes.
In the code below jiraProjectId.value is a Javascript variable. valProjectId.value is a label but it's never set.
createJiraProject.trigger({
onSuccess: function (data) {
jiraProjectId.value = data.id;
valProjectId.value = data.id;
},
onFailure: function (error) {
valProjectId.value = error
}
});
return;