go-jira icon indicating copy to clipboard operation
go-jira copied to clipboard

error trying to create/update jira

Open fawaf opened this issue 2 years ago • 4 comments

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 avatar Dec 01 '22 20:12 fawaf

can definitely provide more info as needed.

fawaf avatar Dec 01 '22 20:12 fawaf

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

fawaf avatar Dec 07 '22 02:12 fawaf

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

I agree that the error message can be more helpful.

andygrunwald avatar Dec 07 '22 18:12 andygrunwald

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)

fawaf avatar Dec 11 '22 08:12 fawaf