Unable to remove or add elements to issue_type_ids
list attribute in atlassian_jira_issue_type_scheme
resource
#102
Labels
bug
Addresses a defect in current functionality.
jira/issuetypeschemes
Issues and PRs that pertain to jira/issuetypeschemes resources.
Affected Resources
Terraform CLI and Provider Versions
v0.1.0
Terraform Configuration
Expected Behavior
When adding a new issue type to the
issue_type_ids
attribute, the provider will trigger theupdate
resource method.The
update
method should add the new issue type toissue_type_ids
as detailed in the Terraform plan.Similary, the
update
method should remove an issue type fromissue_type_ids
using the Terraform plan and state to perform any relevant checks and validations.Actual Behavior
When applying a configuration to add a new issue type to the
issue_type_ids
attribute, the provider throws an error inside theupdate
resource method as shown below:When applying a configuration to remove an issue type from the
issue_type_ids
attribute, the provider completes theupdate
method successfully as shown below. However, the issue type is still present in the resource's API state.Steps to Reproduce
atlassian_jira_issue_type_scheme
resource with one value in theissue_type_ids
attribute:terraform apply
issue_type_ids
attribute.terraform apply
. This will throw an error when the provider executes the resource'supdate
method.issue_type_ids
attribute.terraform apply
. This will complete without errors but the value is not removed from API state.How much impact is this issue causing?
High
Logs
No response
Additional Information
This may be fixed by adding the following code fix:
Code of Conduct
The text was updated successfully, but these errors were encountered: