Hi,
We are using Customer Form Extension from the Extension for Jira Service Management add-on to have dynamic fields on our forms.
Now, we want to use one of those dynamic fields, which are custom, in an automation to modify the summary of an issue after it is created.
What is the proper syntax for that? Before using dynamic fields, our automation was "RETURN: {{issue.customfield_10102}} {{issue.customfield_10103}}, le {{issue.dueDate.withLocale("fr").asLongDate}}" and that worked ... but with dynamic fields, no.
Any help is appreciated. Thanks!
I contacted Deviniti and the told me to add the "Then: Re-fetch issue data" component right after the "When issue created" trigger ... after that, it works. Something about the automation executing at the same time the add-on receives the signal that a dynamic form is being used so the values aren't there yet. The "Then: Re-fetch issue data" component adds a delay that allows the values of the fields in the dynamic form to be available ...
Thanks, and that makes sense.
The issue created trigger can fire so quickly that the data is not available when the rule starts. The common work-around is to add the Re-fetch action before any conditions/actions; this will slow down the rule by about a second while the data reloads.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I recommend using the how-to article linked below to learn if your new fields are supported in automation rules.
Basically you find an example issue with your field, call the REST API from a browser tab, and then look for your field. If you can see it, the field is supported by automation rules, and you will see how you access it. When the field is not listed the automation rules do not support it.
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
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.
Hi, thank you for your answer.
My custom fields were showing up in the JSON output but they still didn't appear in my automation.
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.