feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Preview of paste link when authentication required (e.g. project management system)

Open tanc opened this issue 9 years ago • 16 comments

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.

tanc avatar Dec 22 '15 15:12 tanc

Does Taiga.io have Slack integration? We are building our APIs to be 100% Slack compatible.

engelgabriel avatar Dec 22 '15 16:12 engelgabriel

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?

tanc avatar Dec 22 '15 17:12 tanc

Let us finish the Outbound webhooks, and I'll help you with that.

engelgabriel avatar Dec 22 '15 17:12 engelgabriel

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 .

tanc avatar Dec 22 '15 17:12 tanc

Would be also great to see the same feature for gitlab e.g. to see the actual issue preview instead of "sign-in required".

tunasalat avatar Jan 26 '16 07:01 tunasalat

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?

tanc avatar Apr 11 '16 14:04 tanc

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?

engelgabriel avatar Apr 11 '16 14:04 engelgabriel

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!

tanc avatar Apr 11 '16 14:04 tanc

ideally it would use the existing user to get the preview link. client side javascript retrieval would be awesome.

admin-crowd-iugo avatar May 26 '16 17:05 admin-crowd-iugo

I'd like to be able to get previews to links that require logins as well.

mpetersen42 avatar Aug 12 '16 17:08 mpetersen42

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.

Valiantiam avatar Mar 22 '17 14:03 Valiantiam

Preview links with auth usefull use for trello links in chat

dimti avatar Apr 06 '17 23:04 dimti

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.

Valiantiam avatar Apr 07 '17 00:04 Valiantiam

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.

porg avatar Jun 17 '20 14:06 porg

Any news?

porg avatar Apr 10 '24 11:04 porg

@engelgabriel Are your forementioned Outbound Webhooks ready? And will they help to facilitate the goal?

porg avatar Apr 10 '24 11:04 porg