Hey there community,
I'm trying to set up a rule that is getting quite complex and hoping someone here can help me out. Here's what I have so far in the rule:
- I have a look up issues action that pulls in all blocked issues
- I have a variable (varMyVariable) that gives me the Insight object attribute off of each of the blocked issues which is always numeric. The variable looks like this:
- The results look something like this:
- [123], [234], [345], [234], [789], [321], [1], [1], [10], [45], [654], [555],[54], [222], [777]
So far so good... Now I have some formatting requirements that seem to be eluding me. The final result should look like this:
[123|234|345|789|321|1|10|45|654|555
54|222|777]
There are three requirements coming into play:
- Result should be pipe delimited - I've successfully accomplished this with a new variable:
-
{{varMyVariable.replace("], [","|")}}
- Result needs to be distinct - I've failed every way I've tried this. I've tried the following:
-
{{varMyVariable.distinct}}
-
{{lookupIssues.customfield_xxxxx."My ID".distinct}}
- Result needs to split to a new line after every 10 matches
Appreciate any insights for this.