Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Select Field to JSON code

Maximilian Neufeld
Contributor
September 18, 2023

Hey there,

 

got a little problem with handing a multi select field values to a jira ticket as labels.

So in any case I want to have the label "Order" in the Jira ticket.

In my json code it looks like this

"labels": ["Order"], 

 

This works perfectly fine- the ticket is now tagged witht the label "Order".

But now I have a Multi Select(the Name is Customer) and want to have all the selected values as labels as well. 

I tried the asArrayOfKVPairs(add) function but it seems like it is not working for me. 
I guess its about the JSON formatting.

How would the correct code for the JSON object look like?

One of my approaches looked like that:

"labels":[ ["Order"], ["[entry.JiraKeywords.asArrayOfKVPairs(add)]"],

 

Thanks for the help

Greetings Max

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events