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;
prettyPrint();

But "length" doesn't seem to exist for collections.  Am I missing something?
image1
2 comments
Comment actions Permalink
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; 
}
prettyPrint();
0
Comment actions Permalink
Can do, thanks.
0

Please sign in to leave a comment.