while in workflow

i Want to send jabber notif to all Assignees

while (Assignee[i] != null || i < 5) {
  Assignee[i].sendJabber("Issue" + getId() + "closed");
  i = i + 1;
}

Why a have an error Can't call method [sendJabber] on null object?

How to get count Assignee?
0
5 comments
Please try this:
var i = 0; 
for each assignee in Assignees { 
  if (i < 5) { 
    assignee.sendJabber(""); 
  } 
  i = i + 1; 
}


Unfortunately you cannot iterate collection as arrays, but only by for-each.
0
Avatar
Permanently deleted user
if (i < 0)

Why if i < 0?

And can i get a username, who is updated issue?
0
Avatar
Permanently deleted user
for each works) Thanks!

And can i get a username, who is updated issue?
0
And can i get a username, who is updated issue?

loggedInUser.login
0
Avatar
Permanently deleted user
Thanks!!
0

Please sign in to leave a comment.