- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2025 10:25 AM
Hi,
Need help to pass multiple values from SNOW to JIRA. We are using record producer and we have list collector variable with the choices defined in the question_choice table. In the flow designer, I have done a look up in the question_choice table with condition "sys id is one of getcatalogvariable.variable_name" and also tried with a flow variable by taking For Each question choice value. Also tried with a script
I am getting this type of error :
{ "Action Status": { "code": 1, "message": "Error: Option value ' Turbo' is not valid (Process Automation.3c5dd02e77f11110cc985228c81061d5; line 4)" } }
Can somebody please help me to achieve this requirement ?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 07:46 AM
how does JIRA expect the value?
use this to get display value
var users = '' + fd_data._1__get_catalog_variables.variable_name.getDisplayValue(); // convert to string
return users.toString();
OR
If the above doesn't work then use this
var users = '' + fd_data._1__get_catalog_variables.variable_name.toString();
var arr = [];
var gr = new GlideRecord("question_choice");
gr.addQuery("sys_id", "IN" , users);
gr.query();
while (gr.next()) {
arr.push(gr.getValue('text'));
}
return arr.toString();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 09:39 AM - edited ‎03-06-2025 02:12 AM