Skip to content

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

@bornmanm

Description

@bornmanm

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions