- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 01:18 PM
Are you unable to pass over list collector values to a multi select field in Jira??
I recently had an ask to send multiple values from a list collector in ServiceNow, to a multi Select field in Jira with the same values in both locations.
In ServiceNow when you submit the request, and look at the executions in flow designer, you can see in the runtime value, that both values selected are being show. But will then receive an error stating that one of the two values is not valid.
I have done both:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2023 07:02 PM
You can try the following script,
var impacted = fd_data.trigger.request_item.variables.variable_name.getDisplayValue().split(",");
return impacted;
I just removed the extra whitespace in the delimiter. This will return list collector values as an array. The receiving end should process the data accordingly.
Otherwise let's know what kind of data format the JIRA API is expecting.
Please mark my answer helpful and accept as a solution if it helped 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2023 07:02 PM
You can try the following script,
var impacted = fd_data.trigger.request_item.variables.variable_name.getDisplayValue().split(",");
return impacted;
I just removed the extra whitespace in the delimiter. This will return list collector values as an array. The receiving end should process the data accordingly.
Otherwise let's know what kind of data format the JIRA API is expecting.
Please mark my answer helpful and accept as a solution if it helped 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 07:23 AM
Thank you very much @AnveshKumar M ! It was just a spacing issue. I did what you recommended and it worked for me as below
var impacted = fd_data.trigger.request_item.variables.variable_name.getDisplayValue().split(", ");
return impacted;
I had to remove just one of the white spaces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 05:51 PM
@Nikelle Ruccio I'm glad that it helped 👍
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2024 09:22 AM
Hi @AnveshKumar M ,
I have the same issue. I tried the same code but i am getting error.
In the flow execution, I can see the values in additional fields but it is showing error as'
{ "Action Status": { "code": 1, "message": "Error: Option value ' Turbo' is not valid (Process Automation.3c5dd02e77f11110cc985228c81061d5; line 4)" } }
Please help me here.
Thanks,
Sam