---
schema: rendered-html/v1
title: "Iterator | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/v1-Iterator.html
generated_at: 2026-06-11T15:17:05.089869+00:00
---






- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- JavaScript Workflow Quick Start Guide
- Create a Workflow
- Edit a Workflow
- Workflow Rule Types
- Transactions
- Use Cases for Workflows
- Web-based Workflow Editor
- Using an External Code Editor
- Default Workflows
- Custom Workflow Repository
- JavaScript Workflow Reference
- Rule-specific Properties
- Context
- Requirements
- Using the Workflow API
- Building Integrations with Slack
- Using REST API Methods in JavaScript Workflows
- Working with Dates and Times
- Working with Periods
- Localized Workflow Messages
- Troubleshooting Workflows
- Remote Debugger
- YouTrack Workflow API
- Change Log
- date-time
- entities
- AbstractVcsItem
- Agile
- AppGlobalStorage
- Article
- ArticleAttachment
- ArticleComment
- BaseArticle
- BaseArticleAttachment
- BaseArticleComment
- BaseComment
- BaseEntity
- BaseWorkItem
- Build
- BundleElementCondition
- BundleProjectCustomField
- Calendar
- Calendar24x7
- ChangesProcessor
- Channel
- EnumField
- FeedbackForm
- Field
- FieldBasedBundleValuesCondition
- [FieldBasedUserValuesCondition](jetbrains__com__help__youtrack__devportal__v1-fieldbaseduservaluescondition.md)
- [FieldBasedValuesCondition](jetbrains__com__help__youtrack__devportal__v1-fieldbasedvaluescondition.md)
- [Fields](jetbrains__com__help__youtrack__devportal__v1-fields.md)
- [Gantt](jetbrains__com__help__youtrack__devportal__v1-gantt.md)
- [GroupProjectCustomField](jetbrains__com__help__youtrack__devportal__v1-groupprojectcustomfield.md)
- [Issue](jetbrains__com__help__youtrack__devportal__v1-issue.md)
- [IssueAttachment](jetbrains__com__help__youtrack__devportal__v1-issueattachment.md)
- [IssueComment](jetbrains__com__help__youtrack__devportal__v1-issuecomment.md)
- [IssueLinkPrototype](jetbrains__com__help__youtrack__devportal__v1-issuelinkprototype.md)
- [IssueTag](jetbrains__com__help__youtrack__devportal__v1-issuetag.md)
- [IssueWorkItem](jetbrains__com__help__youtrack__devportal__v1-issueworkitem.md)
- [Iterator](v1-Iterator.html)
- JsonForArticleAddAttachment
- JsonForArticleAddComment
- JsonForArticleConstructor
- JsonForIssueAddAttachment
- JsonForIssueAddComment
- JsonForIssueAddWorkItem
- JsonForIssueCommentAddAttachment
- JsonForIssueConstructor
- JsonForUserNotify
- MailboxChannel
- OwnedField
- PeriodProjectCustomField
- PersistentFile
- Project
- ProjectCustomField
- ProjectTeam
- ProjectType
- ProjectVersion
- PullRequest
- PullRequestState
- Requirement
- Requirements
- SavedQuery
- Set
- SimpleCalendar
- SimpleProjectCustomField
- Sprint
- State
- Tag
- TextProjectCustomField
- User
- UserAttributes
- UserCondition
- UserGroup
- UserProjectCustomField
- UserType
- VcsChange
- VcsServer
- WatchFolder
- WorkItemAttributeValue
- WorkItemAttributes
- WorkItemProjectAttribute
- WorkItemType
- http
- license
- notifications
- search
- strings
- workflow
- YouTrack Import Scripts
- YouTrack Form API
- YouTrack REST API
- Hub REST API

1. YouTrack Workflows
2. JavaScript Workflow Reference
3. YouTrack Workflow API
4. entities
5. [Iterator](#0)

# Iterator﻿

Last modified: 07 May 2026

An object that enables traversal through the elements in a collection.

## Methods﻿

### next﻿

static next()

**Return Value**

| --- | --- |
| Object | An object that contains values for the properties `done` and `value` properties. If there are elements that were not traversed, `done` is `false` and `value` is the next element in the collection. If all of the elements were traversed, `done` is `true` and `value` is `null`. |

- [Iterator](/help/youtrack/devportal/v1-Iterator.html)
- [Methods](/help/youtrack/devportal/v1-Iterator.html#methods)
- [next](/help/youtrack/devportal/v1-Iterator.html#next)

[IssueWorkItem](jetbrains__com__help__youtrack__devportal__v1-issueworkitem.md)JsonForArticleAddAttachment

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

