Forums

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

Join two lists with the same size using smart value

Priska Aprilia
Contributor
May 18, 2022 edited

I have two list with the same size where I want to merge them and separate the each value of the two list using @.

 

list_1:

A,
A,
C,
D,
E

 list_2

one-time,
one-time,
recurring,
recurring,
recurring

The expected merged list_3:

A@one-time,
A@one-time,
C@recurring,
D@recurring,
E@recurring

I tried to look at the documentation https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/ but was not able to find any idea how to achieve this.

Managed to get the idea on how to iterate a single list and add the suffix @index but no idea how to expand this function to merge two list.

{{#list_1.split(",")}}{{.}}@{{index}}{{^last}},{{/}}{{/}}

 I tried with 

{{#list_1.split(",")}}{{.}}@{{list_2.split(",").get(index)}}{{^last}},{{/}}{{/}}

and it did not work. It seems like the smart value does not recognize the index for the following function:

{{list_2.split(",").get(index)}}

Does anyone have any ideas?

1 answer

0 votes
Michał March 8, 2024

interesting approach,

have you been successful with your solution?

I can see here

{{#list_1.split(",")}}{{.}}@{{list_2.split(",").get(index)}}{{^last}},{{/}}{{/}}

 lack of '#' in list_2 - could this be a simple syntax reason?

How did you get two list? I wonder how can I work on lists of fixVersion of few child issues?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira service management, jsm webinar, ai in jsm, opsgenie integration, incident management, virtual agent, atlassian intelligence, ai-powered service desk, it operations, atlassian learning, service management webinar, team '25 recap

What’s new in Jira Service Management 🤔

Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.

Register here ⬇️
AUG Leaders

Atlassian Community Events