pub async fn edit_item(
project_dir: &Path,
id: &ItemId,
edit: ItemEdit,
) -> Result<BacklogItem>Expand description
Update the specified fields of PBI id, refresh updated, and return the saved BacklogItem.
Fields set to None remain unchanged. Validate every field before saving, so an error leaves
the on-disk item untouched. Return Error::NothingToUpdate when no field is supplied,
Error::EmptyTitle for a blank title, Error::ParentCycle for a cyclic parent, and
Error::NotFound when the item or proposed parent does not exist. Return
Error::NotInitialized for an uninitialized board.