Hi there,
I am trying to copy the value of an Elements Connect field to a standard Jira custom field of the type "number". I am using Jira on Server and the app "Automation for Jira".
When using an automation rule, I don't get any results from advanced field editing (More options > Additional fields) with the following code (as suggested here):
{
"fields": {
"customfield_11121": {{issue.customfield_11400.asJsonStringArray}},
}
}Here's what i noticed:
The Elements Connect field (of the type "Snapshot" btw) gives me a number in the format "1.069.754,49". Via Rest API I get the following information:
customfield_11400: {
required: false,
schema: {
type: "array",
items: "string",
custom: "com.valiantys.jira.plugins.SQLFeed:nfeed-unplugged-customfield-type",
customId: 11400While the info on the Jira custom number field is:
customfield_11121: {
required: false,
schema: {
type: "number",
custom: "com.atlassian.jira.plugin.system.customfieldtypes:float",
customId: 11121The format of this number field is "862,000" or "862.000", depending which language is used (English or German). The format of the Elements Connect field is always as mentioned above.
I understand that the main problem is that the Elements Connect field has a string value while the custom field expects a numeric value. I have tried to play around with different smart values (.asNumber, .remove("."), .format("###")) but haven't had any luck so far.
Does anyone have a solution for this? Any feedback and suggestion is appreciated 
Cheers,
Joelle