Skip to content

Conversation

@itsrainy
Copy link

Working with the Custom_Fields, Fields, and Via ticket properties was very cumbersome when they were just interface{} types. I gave them their own types matching the documentation found here

Regarding the Via.Source object, the From and To objects seem to have different properties depending on the channel. I considered making the from and to structs contain all the possible values, then leaving it on the user to determine which fields should/shouldn't be empty for a given channel. Thoughts on doing that?

I tried to follow the style of the rest of the project. Let me know if you take issue with anything or would like anything changed.

Added support for the `ticket_fields` endpoint
@itsrainy
Copy link
Author

I merged #7 into Hudl's master branch and it seems like that pulled those commits into this PR as well. So I'm going to close that PR and just have this one count for both sets of changes.

@itsrainy itsrainy changed the title Added structs for FieldValue and Via Added structs for FieldValue, Via and added support for ticket_fields.json Jun 18, 2015
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.

1 participant