Question: how to link from an issue comment to a pages page?
Is there an existing issue for this?
- [X] I have searched the existing issues
Summary
Link to a pages document from an issue.
Why should this be worked on?
It often happens that, instead of writing an elaborate comment on an issue, that you want to explain something properly, and a pages document is nicer to edit and more readable. I want to create a link, but it seems not to be possible, only from a pages document to an issue, but not the other way around. I have not found anything in the documentation on how to do it.
Hello! I'm currently developing an AI tool that investigates issues, and I used this issue as a test to see if it could help. Below are the findings, which I hope might assist in resolving this issue faster.
Boosterbot.ai Findings:
The investigation reveals that the existing linking mechanism and state management for issue links can be extended to support linking from issue comments to pages documents. The issue_link.d.ts and link.store.ts files provide a solid foundation for managing links, while the issue_comment.service.ts, comment.store.ts, comment-card.tsx, and comment-create.tsx files handle issue comments and can be extended to include linking functionality. Backend adjustments will be necessary in the comment.py and link.py files to support the new linking feature.
- Review the existing linking mechanism from pages documents to issues to understand the current implementation and identify reusable components or logic.
The
issue_link.d.tsfile defines the structure of issue links, including editable fields and mappings. Thelink.store.tsfile manages the state and CRUD operations for issue links. These files provide a comprehensive framework for managing links, which can be extended to support linking from issue comments to pages documents. - Investigate the components and state management related to issue comments to determine how to extend them to support linking to pages documents.
The
issue_comment.service.tsfile handles CRUD operations for issue comments. Thecomment.store.tsfile manages the state of comments, including fetching, creating, updating, and deleting comments. Thecomment-card.tsxandcomment-create.tsxcomponents render and manage the display of comments. These components and state management logic can be extended to support linking to pages documents. - Examine the backend logic and API endpoints to ensure they can handle the new linking functionality and make any necessary adjustments.
The
comment.pyfile handles CRUD operations for issue comments, while thelink.pyfile manages CRUD operations for issue links. These files will need to be updated to support the new linking functionality from issue comments to pages documents. Specifically, new endpoints or modifications to existing ones may be required to handle the creation and management of these links.
These suggestions are automatically generated based on the context of the issue description and repository code. If you have any feedback or want to try it on your own project, my email is on my profile. Thanks!
Thanks for the feedback, @metalMajor. I agree that having an easier way to link between pages and issues would solve this problem. Currently, pages support issue embeds, but adding shortcuts within issues to link pages would definitely help. We’ll pick this up.