checkmarx-ts / checkmarx-cxflow-github-action

Checkmarx CxFlow GitHub Action with SARIF output
GNU General Public License v3.0
52 stars 53 forks source link

Jira Service - "Resolution is required." #46

Closed bfentiman-ipipeline closed 2 years ago

bfentiman-ipipeline commented 2 years ago

While attempting to transition a Jira ticket to Closed, the GitHub action is running into the error:

com.atlassian.jira.rest.client.api.RestClientException: [ErrorCollection{status=400, errors={}, errorMessages=[Field Resolution is required.]}]

As "Resolution" is one of the default fields for Jira, I'm looking at getting that automatically set so that this error doesn't occur anymore.

jbrotsos commented 2 years ago

@bfentiman-ipipeline are you using config-as-code file to do your Jira settings?

https://github.com/checkmarx-ltd/cx-flow/wiki/Config-As-Code#current-overrides-available

For custom Jira integration, it is recommended to use professional services to help.

bfentiman-ipipeline commented 2 years ago

@jbrotsos currently I'm not using config-as-code as I presumed given that its a base default field on Jira it would be covered by a default.

I'll have a look at config-as-code to see if it'll assist with the integration, however given the nature of the Resolution field, I'm not sure config-as-code will solve it.

bfentiman-ipipeline commented 2 years ago

Looked at the config-as-code managed to find the options:

--jira.close_transition_field=resolution --jira.close_transition_value=Done 

I couldn't find these documented anywhere except when I was checking the example config-as-code so I'm not sure whether these would be better documented elsewhere as well