Details
Description
Issue Summary
In Jira Align, when portfolio objectives are created and a theme is not set, the themeId is set to zero. Then, when updating the item via the API, validation that themeId 0 exists in the selected program fails.
Steps to Reproduce
- Create a portfolio objective through UI and do not set a theme
- Run a get call for that objective, and notice that themeId is 0
- Run a patch call for that objective to update the description
Expected Results
When themeId = 0, do not validate that themeId 0 is in the selected program
Actual Results
An theme validation is returned in the API
Workaround
If themeId = 0, update it to null to avoid the validation