mozilla / jira-bugzilla-integration

Jira Bugzilla Integration (JBI) - system to sync bugs and issues
Mozilla Public License 2.0
10 stars 21 forks source link

resolution: Field 'resolution' cannot be set. It is not on the appropriate screen, or unknown. #294

Open leplatrem opened 2 years ago

leplatrem commented 2 years ago

https://sentry.io/organizations/mozilla/issues/3681961097/?referrer=slack

This could be due:

Instead of just:

get_client().update_issue_field(
        key=issue_key,
        fields={"resolution": jira_resolution},
    )

we may have to do things like:

get_client().transition_issue(issue_key, transition='Close', resolution={'name':'Cannot Reproduce'})

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post

Source: https://stackoverflow.com/questions/64457432/how-i-can-change-or-clear-value-for-resolution-field-in-jira-using-python

bsieber-mozilla commented 1 year ago

Resolutions for project XYZ might not correlate of be the same as project ABC; when a PM moves a sync'd card from the original project to a new project that doesn't have the same resolutions this causes an error when we use our map.

Since there is not a consistent use of Jira Project configuration; when a issue card if moved to a project that isn't the one listed in the config.yaml--this error will occur.