Error "Field with id' xxx' and name 'Team' does not support operation 'add' Supported operation(s) are: 'set'" on Jira Align Connector
Summary
After creating a Story with a Team associated with it, the error "Field with id' xxx' and name 'Team' does not support operation 'add' Supported operation(s) are: 'set'" appears on the Audit Logs and it doesn't sync with Jira.
Environment
Jira Align
Diagnosis
When navigating to Admin > Jira Settings > Manage Projects > View Logs, the below error can be observed:
Field with id' customfield_xxxx' and name 'Team' does not support operation 'add' Supported operation(s) are: 'set'
Cause
This happens because Jira Align has the Team field configured on the Organization Field, which can be found on Jira Settings > Jira Setup: Organization, and on Jira, the custom Team field created to have this value is from the type Advanced Roadmaps/Portfolio, instead of the default type of dropdown/single value that comes with Jira.
The field Team that comes with the plugin Advanced Roadmaps/Portfolio is from type Array, and it doesn't support the method add (the one that the JA API uses to update the info on Jira). Currently, JA only accepts the Team integration custom type fields that come default with Jira.
Solution
On the Jira side, the type of field used for Teams needs to be changed to the default dropdown/single value, and the ID of the field is updated on JA on the Organization field.