Replace comment-based task binding with custom field integration #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Teamwork's UI locks comments to private and clears notification lists when comments are marked private. This breaks the reset comment workaround and affects manual comments added after automated ones.
Changes
New functions:
teamwork::get_custom_field_id()- Looks up custom field ID by name using v3 APIteamwork::update_task_custom_field()- Updates task custom field value via v1 APIModified event handlers:
pull_request_opened- Sets "PR" custom field to PR URL (was: private comment)pull_request_closed- Updates field with "(Merged)" or "(Closed)" suffixpull_request_review_submitted- Adds tags only (was: comment + tags)pull_request_review_dismissed- No action (was: comment)Removed:
teamwork::add_reset_comment()and all reset comment logicImplementation notes
Custom field values properly escape JSON and URL-encode query parameters:
Requires a custom field named "PR" to exist on tasks. Tags and board column movement unchanged.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.