cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Inject variable list of into a parameter.

AMacourek
Deputy Chef III
Deputy Chef III

I have a list of Ids in a variable:
{ObjectTypes:[6,118,119]}

 want to have this injected into a JSON parameter for a JIRA API call

{
"qlQuery": "objectTypeId IN ()"
}

I tried using the variable between the () and it did not like the formula.

The resulting JSON should be: 

{
"qlQuery": "objectTypeId IN (6,118,119)"
}

I could hard code this, but it is always better to be data driven.

5 REPLIES 5

You're not supposed to copy the exact text I sent you.

Where I write:

{
"qlQuery": "objectTypeId IN (#{[ObjectTypes data pill].join(',')})"
}

You need to replace "[ObjectTypes data pill]" with the actual data pill from the previous step of your recipe. A "data pill" is the UI element that you drag/click into the input field.