Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Customer Form Extension field in automation

Alexandre Godin February 24, 2023

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!

2 answers

1 accepted

0 votes
Answer accepted
Alexandre Godin March 15, 2023

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 ...

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2023

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.

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2023

Hi @Alexandre Godin 

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

Alexandre Godin March 15, 2023

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.

Suggest an answer

Log in or Sign up to answer