The CreatorCon Call for Content is officially open! Get started here.

Integrating list collector values to multi select field in Jira

Nikelle Ruccio
Tera Contributor

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:

var impacted = fd_data.trigger.request_item.variables.variable_name.getDisplayValue().split(" , ");
return impacted;
 
and 
 
var impacted = fd_data.trigger.request_item.variables.variable_name.getDisplayValue();
return impacted;
 
and with either, it will either create the Jira ticket, but not populate said values in Jira, OR it will throw an error stating that one of the two value options is not valid.
 
 
Thank you in advanced!!

 

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

Hi @Nikelle Ruccio 

 

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 👍

Thanks,
Anvesh

View solution in original post

5 REPLIES 5

AnveshKumar M
Tera Sage
Tera Sage

Hi @Nikelle Ruccio 

 

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 👍

Thanks,
Anvesh

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.

 

@Nikelle Ruccio I'm glad that it helped 👍

Thanks,
Anvesh

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