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

Ticket creation fails when field 'components' cannot be set #7

Closed
bornmanm opened this issue May 9, 2018 · 3 comments
Closed

Ticket creation fails when field 'components' cannot be set #7

bornmanm opened this issue May 9, 2018 · 3 comments

Comments

@bornmanm
Copy link

bornmanm commented May 9, 2018

Hi,

creating a ticket fails with the error message

Field 'components' cannot be set. It is not on the appropriate screen, or unknown.

Due to Jira permissions I do not have the permission to edit the corresponding screen to allow the field 'components' to be set. Uncommenting the lines

issue.Fields.Components = make([]*jira.Component, 0, len(r.conf.Components))
for _, component := range r.conf.Components {
    issue.Fields.Components = append(issue.Fields.Components, &jira.Component{Name: component})
}

from notify.go solves the problem but it should probably be configurable whether jiralert attempts to set 'components'.

@free
Copy link
Member

free commented May 18, 2018

I've wrapped the offending code in an if len(r.conf.Components) > 0 block, so it will now no longer set an empty list of components. I'll try to make a new release soon, but I'm trying to get the other 2 issues solved as well.

@free
Copy link
Member

free commented May 19, 2018

Closing as fixed, let me know if you still have problems. Fix is part of release 0.6.

@free free closed this as completed May 19, 2018
@bornmanm
Copy link
Author

Everything is working fine now. Thanks a lot!

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