Integrations REST API requires different arguments when setting use_inherited_setting to true

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem

Currently our Integrations API to Set up Jira is requiring a password even when use_inherited_settings is set to true. When setting this up using the UI, that field is not required when use default settings is selected on a project.

The same API endpoint is used when creating an integration, and so certain arguments are required, although the service itself ignores all other arguments when we set an integration to use its inherited settings as they don't matter in that situation.

The feature request here is to make the password field optional when use_inherited_settings is set to true.

Workaround

The workaround would be to provide the required arguments. So long as the use_inherited_settings argument is true, then we will ignore the other arguments and just set the integration to use inherited settings.

Edited by 🤖 GitLab Bot 🤖