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

Custom field value is both null and not-null (?) #130

Open
andreasciamanna opened this issue Sep 10, 2023 · 1 comment
Open

Custom field value is both null and not-null (?) #130

andreasciamanna opened this issue Sep 10, 2023 · 1 comment

Comments

@andreasciamanna
Copy link

I'm querying an issue by ID and with some fields and custom fields.

When I look for a field by name, I can get the entity (in this case, an instance of SimpleProjectCustomField):

image

As you can see, the field's properties are duplicated.
In the case of Value, it's once set as null and the other time with the actual correct value.

When reading the value, I always get the null one.

@andreasciamanna
Copy link
Author

I worked around the issue casting the field to SimpleIssueCustomField (e.g. ((SimpleIssueCustomField)employeeName)).

I'm unsure as to why this is necessary though.

@andreasciamanna andreasciamanna changed the title Custom field value is but null and not-null (?) Custom field value is both null and not-null (?) Sep 11, 2023
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

No branches or pull requests

1 participant