Forums

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

Confiform - asArrayOfKVPair not working

Maximilian Neufeld
Contributor
August 5, 2025

Hey there,

my setup is as follows:

Form1 with Field1 (Smart Multi Select pointing on Form2)

Form2 has field1 ProjectName (Text) and a FieldY that stores a JiraTicket generated by IFTTT for every entry. 

 

Now I have a onModified IFTTT on the Smart Multi Select -> for all values I want the Jira ticket and pass it to the Jira Rest-API with JSON.

The JSON looks like this:

 

"update": {
        "issuelinks": [
            {
                "add": {
                    "values": [
                        {
                            "type": {
                                "id": "99999"
                            },
                            "inwardIssues": [
                               [entry.Field1.FieldY.key.asArrayOfKVPairs(key)]
                            ]
                        }
                    ]
                }
            }
        ]
    } 

That generates this error:

Screenshot JSON.png

Somehow the asArrayOfKVPairs(key) is not resolving into {"key":"value"}, {"key": "value2"}.

Anyone got a clue what I did wrong?

Greetz Max

 

 

1 answer

1 accepted

2 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
August 5, 2025

You should be transforming your multi-select field to get the array of jira issue keys

[entry.Field1.transform(FieldY).asArrayOfKVPairs(key)]

 

Maximilian Neufeld
Contributor
August 5, 2025

Works!! At least the Confiform Part
Unfortunatly Jira still cant take multiple inwardissues in the JSON (BUG is open for 8 years wtf?). Is there any possibility of triggering the IFTTT one time for each value in the smart multi select field ?

 

Or maybe you have another idea how I pass all JiraTickets of the Smart Multi Select in the JSON

 

Alex Medved _ConfiForms_
Community Champion
August 5, 2025

Somewhat possible in cloud https://jira.atlassian.com/browse/JRACLOUD-81845 but still not fixed in DC - https://jira.atlassian.com/browse/JRASERVER-66329

You may consider setting up an extra form and copying (flattened) data there and have an IFTTT to run onCreated to create a link...

Alex

Maximilian Neufeld
Contributor
August 7, 2025

Thats a good idea! But how do I automatically copy the flattened entries to the other form. The only way to flatten is to do it via table merger, no?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events