Forums

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

Traverse a multi select field selected values and use it in the IFTTT rule macro body to send an ema

Rohit Agarwal July 6, 2018

Hi everyone,

 

I am trying to generate some URLs based on the multi select values from a confiform.

 

Through some online search, I figured that I can use velocity template to use some calculations or manipulations to the values.

 

Confiform Multiselect Field values: [XYZABC-123, XYZABC456, XYZABC-789]

(id and value are both same)

$set( $issueList = [entry.issueList] )

URLs I am trying to generate through the below velocity logic:

#foreach( $issueID in $issueList )
    https://<domainname>/issue/$issueID
#end

 

Can you tell me what is wrong here? In the email when I receive it, there is nothing generate for the parts where the velocity code is written.

 

 

Regards,

Rohit

2 answers

0 votes
Davin Studer
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.
July 26, 2018

I don't think you need the #set. I think that is clearing out the Velocity variable. I think you would want to just do this.

#foreach( $issueID in $issueList )
    https://<domainname>/issue/$issueID
#end

Here is some documentation for this.

https://wiki.vertuna.com/display/CONFIFORMS/How+to+reference+a+multi-select+user+values+in+IFTTT+macro+body 

0 votes
Rohit Agarwal July 6, 2018

issueList in '[entry.issueList]' is the name in the confiform field definition

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events