Commit graph

7 commits

Author SHA1 Message Date
Dave Porter
bd092e75cd Use custom 'Deliverable' item type when creating deliverables
Changes:
- Added DELIVERABLE_ITEM_TYPE_ID config (5793903 for Staging)
- Updated create_deliverable_project() to use customItemTypeId parameter
- Deliverables now created with proper "Deliverable" custom item type
- Results in scope=WsFolder (instead of RbFolder)
- Matches manually created deliverables in Wrike UI

This ensures deliverables display correctly as "Deliverable" type
in the Wrike interface, not generic "Project" type.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 15:16:24 -04:00
Dave Porter
5814c87ae2 Fix duplicate deliverables: Separate OMG# and OMG URL fields
Changes:
- Added OMG_URL custom field (IEAGU2B2JUAJRZ7Y)
- Updated OMG# field ID (IEAGU2B2JUAJV4P7)
- Deliverables now use:
  - OMG# = plain number (e.g., "6027380") for duplicate detection
  - OMG_URL = clickable URL (e.g., "https://bissell.omg.oliver.solutions/jobs/5027381")
- Fixed find_deliverable_by_omg_number() to search on plain number
- Improved error handling in duplicate detection
- Tested: Duplicate prevention works correctly

This prevents duplicate deliverable creation by searching on the plain
OMG# number while still providing clickable URLs in the OMG_URL field.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-20 14:52:44 -04:00
Dave Porter
d449668cb9 Update deliverable creation: Projects with URLs and correct dates
Changes:
- Deliverables now created as Projects (not Tasks)
- Project dates: Using StartDate/EndDate from ProjectDetails
- Deliverable dates: BriefDate as start, LiveDate (or DueDate) as end
- OMG# field for deliverables: Contains URL (OMG# - 999999)
  - Example: 6361863 → https://bissell.omg.oliver.solutions/jobs/5361864
- Projects keep OMG# as plain number
- Added find_deliverable_by_omg_number() for duplicate detection
- Added generate_omg_url() for URL construction

Structure: Folder > Project > Deliverable (as Project)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 16:08:18 -04:00
Dave Porter
255c03b65d Add real-time monitoring service (v2.0)
Major additions:
- wrike_monitor.py: Real-time folder monitoring with watchdog
- Daily email reports at 7PM with comprehensive statistics
- Failed file handling with error logs
- Periodic scanning for missed files
- systemd service support for production deployment
- Sequential processing to prevent race conditions
- Proper parent/child folder matching using childIds

Configuration:
- Easy path configuration for local/production
- Configurable Wrike space ID
- Email settings for daily reports
- Auto-cleanup of processed files (24h retention)

Documentation:
- INSTALLATION.md: Complete systemd service setup guide
- QUICKSTART.md: Quick reference for both tools
- Updated README.md with tool comparison
- requirements.txt with clear dependencies

Bug fixes:
- Fixed duplicate folder/project creation via childIds matching
- Added logging for skipped deliverables
- Improved cache management

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 14:31:19 -04:00
Dave Porter
06c472c748 Merge .gitignore files
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 12:53:20 -04:00
Dave Porter
ad0c512012 Initial commit: Wrike import script v1.2
- Automatic folder/project/task creation from JSON files
- Duplicate detection via OMG numbers
- Custom field mapping
- File management (Processed folder + 24hr cleanup)
- Production ready

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 12:52:08 -04:00
Dave Porter
d2baba361c Initial commit 2025-10-10 16:49:35 +00:00