Workflow: Get length of a collection?

I want to do something like the following:
var issues = u.getIssues(Everything, "for: me");
var count = issues.length;


But "length" doesn't seem to exist for collections.  Am I missing something?
image1
0
2 comments
Hi Scott,

it is, issues, tags, Fix versions etc. aren't full-featured collections but rather iterators. To count issues number please try this:
var i = 0; 
for each myIssue in issues { 
  i = i + 1; 
}
0
Avatar
Permanently deleted user
Can do, thanks.
0

Please sign in to leave a comment.