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

Added example "Create with custom fields" #358

Conversation

manuelbcd
Copy link
Contributor

Description

New example "examples/createwithcustomfields"

Information that is useful here:

  • The What: New example demonstrating how to create issues with custom fields.
  • The Why: There were no examples.
  • Type of change: Improvement/examples
  • Breaking change: No
  • Related to an issue: Documentation for custom jira fields #350
  • Jira Version + Type: Cloud

Example:

Simply try examples/createwithcustomfields and provide required data (url, user, password, custom field name, custom field value).

go run examples/createwithcustomfields/main.go

examples/createwithcustomfields/main.go Outdated Show resolved Hide resolved
examples/createwithcustomfields/main.go Outdated Show resolved Hide resolved
examples/createwithcustomfields/main.go Outdated Show resolved Hide resolved
@manuelbcd
Copy link
Contributor Author

Thank you for this nice feedback @benjivesterby. I will update the PR and take the opportunity to submit new PRs applying these changes to the other existing examples

@manuelbcd
Copy link
Contributor Author

@benjivesterby FYI I have fixed your two first comments. For the third one "_, err := ioutil.ReadAll(resp.Body)" I have restored the error managment to be similar to "create" example, I can evolve it in another PR if you want.

Copy link
Contributor

@benjivesterby benjivesterby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great @manuelbcd thank you for all the hard work!

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