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

Issue Field and Issue Type object based methods #1784

Merged
merged 6 commits into from
Dec 26, 2023
Merged

Conversation

adehad
Copy link
Collaborator

@adehad adehad commented Dec 23, 2023

Supersedes #1626.

Original credit goes to: @ddelabru

Summary of Further Changes to original PR

  1. Migrates previous Field and Issue Type resource test
  2. Update docstring to highlight we are using the createmeta API for anyone searching through.

I also used this as a way to sort through the Jira Cloud test failures.

ddelabru and others added 5 commits December 23, 2023 20:09
Version 3.5.0 of the client library introduced the
createmeta_issuetypes() and createmeta_fieldtypes() client member
functions to replace the deprecated form of the createmeta
Jira endpoint. However, these functions return the raw JSON of a
single response, and do not handle pagination that may be applied
to the endpoints, such as when an issue type within a project has
more than 50 associated fields. I recently encountered a Jira
deployment where this case occurred, rendering
createmeta_fieldtypes() unuseful.

Because the functions added in 3.5.0 have a different return type
than these new functions, instead of changing the behavior of those
functions this commit creates two new client member functions:
project_issue_types()  and project_issue_fields().
@adehad adehad changed the title Feature/issue field Issue Field and Issue Type object based methods Dec 23, 2023
jira/resources.py Outdated Show resolved Hide resolved
@studioj studioj merged commit cce214e into main Dec 26, 2023
12 checks passed
@studioj studioj deleted the feature/issue_field branch December 26, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants