Hi Community,
In scriptrunner, I am having problem to sort the value these 2 variables: "participants" and "cfValpart"
For the following line:
if (participants != cfValpart){
.....
}
The comparison is made but the value needs to be in order. Take for examples the following 2 mentioned scenario:
Scenario 1:
participants =
{John, Pierre, Alana}
cfValpart = {John, Pierre, Alana}
The comparison return true.
But Scenario 2:
participants =
{John, Pierre, Alana}
cfValpart =
{Pierre, John, Alana}
The comparison return false. (Where it should be true)
I have use to the following ".order" but the cfValpart is not accepting the function.
Can I have some advise or help on the issue
Best regards,
Jason Li