feature-requests
feature-requests copied to clipboard
Preview of paste link when authentication required (e.g. project management system)
I'd like to be able to paste a link from our project management system and have the preview text shown under the link in rocket.chat be more relevant. Is there a facility to write some integration code for specific urls? Our project management system (https://taiga.io - self hosted) requires a log in to view a task so I'm not sure how this would work exactly. Any ideas about authenticated pastes or plugins to handle this sort of thing would be great.
Does Taiga.io have Slack integration? We are building our APIs to be 100% Slack compatible.
It does but only in the other direction. So when you post an issue on Taiga it uses a webhook to post a message in Slack (or rocket.chat). While this is definitely useful it would be interesting to be able to do it the other way round. At the moment whenever we paste a link to a Taiga issue there is some boilerplate text presented as the preview which is a little annoying after a while. Its not a big deal but just wondering whether there was any way to write a plugin or similar to handle specific urls and present something different for the preview text?
Let us finish the Outbound webhooks, and I'll help you with that.
Sounds good!
On Tue, 22 Dec 2015 at 17:50, Gabriel Engel [email protected] wrote:
Let us finish the Outbound webhooks, and I'll help you with that.
— Reply to this email directly or view it on GitHub https://github.com/RocketChat/feature-requests/issues/639 .
Would be also great to see the same feature for gitlab e.g. to see the actual issue preview instead of "sign-in required".
Just bringing this one back up @engelgabriel and hoping you can help? I've just realised that it would be great to be able to paste in gitlab commits and have the diff show in rocket.chat. Any way of achieving this with the current webhooks?
You can parse the payload in anyway you like, how would you display the diff if it was a big commit? Do you have a design in mind? Or using the right tabs?
To be honest I hadn't thought it through, I was just wondering how the outbound hooks work really. My original request was to be able to show a preview of the Taiga issue when someone pastes a link to it in the chat. You said you'd help once outbound hooks had landed so I thought I'd bring this back up again!
ideally it would use the existing user to get the preview link. client side javascript retrieval would be awesome.
I'd like to be able to get previews to links that require logins as well.
This is something our community would really love as well.
My thought on this is maybe there is a Bot Agent that could be used when it scrapes the site for a preview / summary? In this way, for example, phpbb forums can add a bot user that has read access, and can scrape general read only information in the same way to google or bing bots do.
Preview links with auth usefull use for trello links in chat
I should note. I got this working with phpbb.
https://github.com/RocketChat/Rocket.Chat/issues/6421
See my notes here. This may help with other applications as well.
We would use that feature for JIRA at our company!
- Simply create a user in JIRA which has read permissions to all projects.
- Tell rocket.chat the username/password for that "preview user"
- Or use a proper preview API key, if JIRA provides that
Then instead of that untelling URL with the issue ID and an untelling title like "JIRA - Please log in", it would give me the full name of the ticket plus maybe some metadata or summary text in the teaser text and maybe even the picture of the latest issue attachment.
Any news?
@engelgabriel Are your forementioned Outbound Webhooks ready? And will they help to facilitate the goal?