comment_on_event_enabled
attribute of JIRA integration broken in 17.9 nightly
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
When calling the API in the nightly
version of GitLab currently (which will be %17.9 on release), the comment_on_event_enabled
doesn't properly update. It appears to set to true
regardless of what is passed in on the argument.
To reproduce:
- Create a fresh GitLab instance (just to rule out any group settings)
- Create a fresh project
- Configure the JIRA Integration via the API using the following
curl
command:
curl -X PUT --header "PRIVATE-TOKEN: <token>" "https://gitlab.example.url/api/v4/projects/6/integrations/jira?url=http%3A%2F%2Ftestcom.com&username=test&password=test&comment_on_event_enabled=false"
Expected Behavior: comment_on_event_enabled
should be false
in the response
Actual Behavior: comment_on_event_enabled
is set to true
Screenshot of the behavior on a local instance (using the configuration from the GitLab Terraform Provider - the token is a testing token, so don't worry that its exposed
Formatted JSON response for ease of reading:
{
"id": 16,
"title": "Jira issues",
"slug": "jira",
"created_at": "2025-02-19T04:25:48.334Z",
"updated_at": "2025-02-19T04:25:48.334Z",
"active": true,
"commit_events": true,
"push_events": true,
"issues_events": true,
"incident_events": false,
"alert_events": true,
"confidential_issues_events": true,
"merge_requests_events": true,
"tag_push_events": true,
"deployment_events": false,
"note_events": true,
"confidential_note_events": true,
"pipeline_events": true,
"wiki_page_events": true,
"job_events": true,
"comment_on_event_enabled": true,
"inherited": false,
"vulnerability_events": false,
"properties": {
"url": "http://testcom.com",
"api_url": null,
"jira_auth_type": 0,
"username": "test",
"jira_issue_regex": null,
"jira_issue_prefix": null,
"jira_issue_transition_id": null,
"issues_enabled": false,
"project_keys": []
}
}