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

error trying to create/update jira #597

Open
fawaf opened this issue Dec 1, 2022 · 4 comments
Open

error trying to create/update jira #597

fawaf opened this issue Dec 1, 2022 · 4 comments

Comments

@fawaf
Copy link

fawaf commented Dec 1, 2022

What happened?

jira/package returns an error

What did you expect to happen?

successful ticket creation

How can we reproduce it (as minimally and precisely as possible)?

cfg.Client is a jira client
issue is a *jira.Issue

		remoteIssue, rsp, err = cfg.Client.Issue.Create(issue)

Minimal code helps us to identify the problem faster.

Anything else we need to know?

{"errorMessages":["No operation with name 'set' found. Valid operations are: ADD,SET,REMOVE,EDIT,COPY"],"errors":{}}

Your Environment

Include as many relevant details about the environment you experienced the problem in

  • go-jira version (git tag or sha): 1.16.0
  • Go version (go version): go version go1.19.3 darwin/amd64
  • Jira type (cloud or on-premise): cloud
  • Jira version / Api version: 3
@fawaf
Copy link
Author

fawaf commented Dec 1, 2022

can definitely provide more info as needed.

@fawaf
Copy link
Author

fawaf commented Dec 7, 2022

turns out issue was that the component name was incorrect (caps vs non-caps), but the error should be a bit more descriptive.

@andygrunwald
Copy link
Owner

Thanks @fawaf
Can you specify what you defined in issue?

I agree that the error message can be more helpful.

@fawaf
Copy link
Author

fawaf commented Dec 11, 2022

Thanks @fawaf Can you specify what you defined in issue?

I agree that the error message can be more helpful.

sure, i mentioned it in my previous comment, but it was a difference in capitalization of the component name. "foo: bar" vs "foo: Bar" (literally the caps of the second word)

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

2 participants