Multiple entries to a single filed.

sai kumar November 22, 2022

Hi, At present we created Confifrom, that User provides, FirstName, LastName and email address. once submitted it will create ticket in Jira, and our Automation script, will add account in target application.

Now I am looking for User can enter multiple user records, in single Confiform request, 

I didn't find multi dimensional array or similar to submit request. May I know is there a way to user can input multiple user records in single request.

2 answers

0 votes
sai kumar November 28, 2022

Thanks Alex for the response, 

I am trying to use the user multi-select field. If I select multiple users,

when passing values, to JIRA with IFTTT integration, 

How can we pass values of single user 

Like

user1-user1@mail.com

user2-user2@mail.com

instead of 

user1, user2-user1@mail.com,user2@mail.com

IFTTT syntax:

 "description":"*App Name:* [entry.AppName.label]\n*Role:* Developer\n*Requested Users :*[entry.Users.asUserNames.]-[entry.Users.asUserEmails.asArray]"

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 28, 2022

Consider using "iterateAndPrint" function instead 

[entry.Users.iterateAndPrint([entry.username] - [entry.email] \\n)]

Alex

0 votes
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 22, 2022

Hi

Each field in ConfiForms should have a corresponding ConfiForms Field Definition macro.

Which means you need to submit multiple forms to create multiple "accounts"

You can set up a form to have "inline add" (TableView, for example, if you are using server/data center version of the app) and submit new records as in excel.. but still you need to do it one-by-one

Alex

sai kumar December 20, 2024

Hi Alex,  if [entry.username] has  value as firstname,lastname how can we replace comma with space firstname lastname,, i tried with repace(',', '') but not worked as expectced.

 

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.
December 20, 2024
username.split(,).join( )
sai kumar December 20, 2024

Hi Alex, Thanks for the response,  but it seems not working as expected.  User field is multi select user field  in IFTTT rules i am trying to pass the user attributes fullname email to jira ticket.   *Requested Users :* [entry.PlaystoreUsers.iterateAndPrint([entry.fullName.split(,).join( )]-[entry.email],)]. user fullname and email are getting from jira/confuence  when i specified like this, at Jira, i see as Requested Users : [entry.fullName.split( 

current output without split(,).join( ) : 1Fname,1LName-1Fname.1Lname@abc.com,

2Fname,2LName-2Fname.2Lname@abc.com, 

I think this is occurring if jira/confluence user arttribute fullname has comma in it. I would like to replace comma from whitespace from fullname attribute value

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.
December 20, 2024

You have not really mentioned anything that it is a user field and in addition it is a multi-select :)

That is changing the context quite a bit...

I am not sure though, what is not working for you with

[entry.PlaystoreUsers.iterateAndPrint([entry.fullName.split(,).join( )]-[entry.email],)]

This looks correct, however, when trying it myself I see that it does not work

We will look into this more closely. Sorry about the inconvenience

Alex

sai kumar December 26, 2024

Hi Alex, did you get a chance to look at the issue

 

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.
December 26, 2024

Please update ConfiForms to latest version (3.15.2) to get this issue addressed

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events