go-jira
go-jira copied to clipboard
error trying to create/update jira
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
can definitely provide more info as needed.
turns out issue was that the component name was incorrect (caps vs non-caps), but the error should be a bit more descriptive.
Thanks @fawaf
Can you specify what you defined in issue
?
I agree that the error message can be more helpful.
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)