Need to Storing Multiple Values from json comma seperated.

mdshahvez11
Tera Contributor

Hello everyone ,
I have a JOSN of watchlist users ,  in some case those can be multiple so i need to store there names and emails in a string type field ',' separated.

{
"size": 4,
"start": 0,
"limit": 50,
"isLastPage": true,
"_links": {
"self": "--------------------",
"base": "------------------",
"context": ""
},
"values": [
{
"accountId": "-----------------------------------------",
"emailAddress": "This 1",
"displayName": "This 2",
"active": true,
"timeZone": "Asia/Calcutta",
"_links": {
"Rest": "------------------------------",
"avatarUrls": {
"48x48": "------------------",
"24x24": "---------------------",
"16x16": "--------------------",
"32x32": "-------------"
},
"self": "------------------"
}
},
{
"accountId": "-------------------------",
"displayName": "This 3",
"active": true,
"timeZone": "Asia/Calcutta",
"_links": {
"jiraRest": "-----------------------",
"avatarUrls": {

}
}
]
}



like above JSON we have 2 display names
so I need to store them in one string field "," separated.
In my current flow I'm getting the last name of the participant , earlier one getting override.

mdshahvez11_0-1750190167188.png


Can anyone suggest me the correct way to achieve this.


1 ACCEPTED SOLUTION

Hristo Ivanov
Kilo Sage

 You can use the scripted option of the update step to concatenate the values, think something like

yourVariable += yourVariable

View solution in original post

5 REPLIES 5

Hristo Ivanov
Kilo Sage

I am not sure I fully understand what the issue is exactly, but if you are already outputting the list of users, you can probably use the scripted option for this as well, where you take the list and then with a for loop, for example, you set the value to the watchlist