Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

For Each loop inside confiforms IFTTT Integration rules is not creating 2nd record

Sundara K October 30, 2024



Hi, I want to create multiple tickets in jira using confluence form, based on the mult-select dropdown, So I am using the below code inside IFTTT Integration rules. The values are seperated by "-" and the split function is working good. When we click on save only one ticket is created jira. 

Can someone help me to solve this issue.

Thanks 

 

#set($myapp = "[entry.Application]")

#set($var = $myapp.split("-"))

#foreach($string in $var)  

{    

"fields": { "project": { "key": "SOLID" },

"issuetype": { "id": "3" },

"summary": "$string",

}

}

#end

1 comment

Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 4, 2024

Hi 

You can probably use the "bulk API" - https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0/?_ga=2.15474545.675557620.1538152808-65270402.1526147845#api/2/issue-createIssues

and create a JSON payload as follows

{
"issueUpdates": [
#foreach($app in $Application.getLabels())
{
"update": {},
"fields": {
"project": { "key": "SOLID" },
"issuetype": { "id": "3" },
"summary": "$app"
}
#end
]
}

This API can be called through the "Applink service" or "Webservice Request" ConfiForms IFTTTs 

Alex

Sundara K November 5, 2024

Thanks @Alex Medved _ConfiForms_  for the quick reply. We are not able to proceed with bulk creation due to other features. But were able to achieve the result with other options.

Thanks,

Mani

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events