Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make PropertyHolder iterable #1749

Closed
wants to merge 2 commits into from

Conversation

mmcclimon
Copy link

I would like to be able to get list all the fields in an issue by iterating over them in a loop, with code like:

for field in issue.fields:
    print(field, issue.get_field(field))

(I can't easily run the tests, and so I haven't added one here, but I can probably sort it out if I need to.)

@mmcclimon mmcclimon temporarily deployed to ack October 27, 2023 02:19 — with GitHub Actions Inactive
@pre-commit-ci pre-commit-ci bot temporarily deployed to ack October 27, 2023 02:20 Inactive
mmcclimon and others added 2 commits December 26, 2023 17:03
I would like to be able to get list all the fields in an issue by
iterating over them in a loop, with code like:

for field in issue.fields:
    print(field, issue.get_field(field))
Copy link

Label error. Requires exactly 1 of: bug, enhancement, major, minor, patch, skip-changelog. Found:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants